limit cpu temp to 20

This commit is contained in:
Jos Dehaes 2021-10-24 21:12:16 +02:00
parent 254ceb9c2d
commit 940cd0a513
1 changed files with 2 additions and 0 deletions

View File

@ -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++) {