Merge branch 'Plasma/5.17'
This commit is contained in:
commit
216c005e28
1 changed files with 1 additions and 1 deletions
|
@ -408,7 +408,7 @@ void Manager::resetSlowUpdateTimer()
|
|||
}
|
||||
|
||||
// calculate interval such as temperature is changed by TEMPERATURE_STEP K per timer timeout
|
||||
int interval = availTime / (qAbs(targetTemp - m_currentTemp) / TEMPERATURE_STEP);
|
||||
int interval = availTime * TEMPERATURE_STEP / qAbs(targetTemp - m_currentTemp);
|
||||
if (interval == 0) {
|
||||
interval = 1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue