mirror of
https://github.com/aristocratos/btop.git
synced 2024-09-28 14:11:35 +02:00
limit cpu temp to 20
This commit is contained in:
parent
254ceb9c2d
commit
940cd0a513
@ -261,6 +261,8 @@ namespace Cpu {
|
||||
auto sensor = sensors.getSensors();
|
||||
if (sensor.size() > 0) {
|
||||
current_cpu.temp.at(0).push_back((long long)sensor[0]);
|
||||
if (current_cpu.temp.at(0).size() > 20)
|
||||
current_cpu.temp.at(0).pop_front();
|
||||
|
||||
if (Config::getB("show_coretemp") and not cpu_temp_only) {
|
||||
for (int core = 1; core <= Shared::coreCount; core++) {
|
||||
|
Loading…
Reference in New Issue
Block a user