From 01e354f18d08bf5d27396a40d3d023a707eb609f Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sat, 21 Aug 2010 12:31:31 +0000 Subject: [PATCH] Make sure newvalue is a int(fraction * 100) svn: r15784 --- src/gen/updatecallback.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gen/updatecallback.py b/src/gen/updatecallback.py index 20ff97c2c..4d931aea4 100644 --- a/src/gen/updatecallback.py +++ b/src/gen/updatecallback.py @@ -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