diff --git a/colorcorrection/manager.cpp b/colorcorrection/manager.cpp index 3b42fd5d3f..f3ba2e64f2 100644 --- a/colorcorrection/manager.cpp +++ b/colorcorrection/manager.cpp @@ -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; }