mirror of https://github.com/aristocratos/btop.git
Fixed: coretemp ordering
This commit is contained in:
parent
1bce1be695
commit
9465e9b014
|
@ -333,7 +333,16 @@ namespace Cpu {
|
|||
}
|
||||
catch (...) {}
|
||||
|
||||
if (not got_coretemp or core_sensors.empty()) cpu_temp_only = true;
|
||||
if (not got_coretemp or core_sensors.empty()) {
|
||||
cpu_temp_only = true;
|
||||
}
|
||||
else {
|
||||
rng::sort(core_sensors, rng::less{});
|
||||
rng::stable_sort(core_sensors, [](const auto& a, const auto& b){
|
||||
return a.size() < b.size();
|
||||
});
|
||||
}
|
||||
|
||||
if (cpu_sensor.empty() and not found_sensors.empty()) {
|
||||
for (const auto& [name, sensor] : found_sensors) {
|
||||
if (s_contains(str_to_lower(name), "cpu") or s_contains(str_to_lower(name), "k10temp")) {
|
||||
|
|
Loading…
Reference in New Issue