Merge branch 'Plasma/5.17'

This commit is contained in:
Vlad Zahorodnii 2020-01-07 15:32:13 +02:00
commit 216c005e28

View file

@ -408,7 +408,7 @@ void Manager::resetSlowUpdateTimer()
} }
// calculate interval such as temperature is changed by TEMPERATURE_STEP K per timer timeout // 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) { if (interval == 0) {
interval = 1; interval = 1;
} }