Make sure newvalue is a int(fraction * 100)

svn: r15784
This commit is contained in:
Doug Blank 2010-08-21 12:31:31 +00:00
parent bb46e8798b
commit 01e354f18d

View File

@ -78,7 +78,7 @@ class UpdateCallback(object):
self.count += 1
if not count:
count = self.count
newval = int(100*count/self.total)
newval = int(100 * count/float(self.total))
newtime = time.time()
time_has_come = self.interval and (newtime-self.oldtime>self.interval)
value_changed = newval!=self.oldval