[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/utils/rsibreak/src
From: Bram Schoenmakers <bramschoenmakers () kde ! nl>
Date: 2005-12-11 22:26:41
Message-ID: 1134340001.725752.4746.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 487778 by bram:
Cast the requested time to a double to make the division work. The dynamic timer \
works now for periods > 100 seconds.
M +1 -1 rsitimer.cpp
--- trunk/playground/utils/rsibreak/src/rsitimer.cpp #487777:487778
@@ -246,7 +246,7 @@
}
else //active
{
- idleIndex += (100 / m_intervals["time_minimized"]);
+ idleIndex += 100 / (double)(m_intervals["time_minimized"]);
}
emit updateIdleAvg( idleIndex );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic