Changeset 3251 for pykota/trunk
- Timestamp:
- 10/15/07 18:43:34 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/tool.py
r3246 r3251 118 118 after = time.time() 119 119 if self.size : 120 speed = self.size / (after - self.before) 120 try : 121 speed = self.size / (after - self.before) 122 except ZeroDivisionError : 123 speed = 1 # Fake value in case of division by zero 121 124 self.display("\r100.00%%\r \r%s. %s : %.2f %s.\n" \ 122 125 % (_("Done"), _("Average speed"), speed, _("entries per second")))