Make sure newvalue is a int(fraction * 100)
svn: r15784
This commit is contained in:
parent
bb46e8798b
commit
01e354f18d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user