[Checkins] SVN: relstorage/trunk/relstorage/storage.py Nit: 1 MB = 1e6 bytes (and 2**20 bytes = 1 MiB)
Shane Hathaway
shane at hathawaymix.org
Wed Jan 26 09:25:41 EST 2011
Log message for revision 119947:
Nit: 1 MB = 1e6 bytes (and 2**20 bytes = 1 MiB)
Changed:
U relstorage/trunk/relstorage/storage.py
-=-
Modified: relstorage/trunk/relstorage/storage.py
===================================================================
--- relstorage/trunk/relstorage/storage.py 2011-01-26 14:15:34 UTC (rev 119946)
+++ relstorage/trunk/relstorage/storage.py 2011-01-26 14:25:41 UTC (rev 119947)
@@ -1348,7 +1348,7 @@
pct_complete = ' %1.2f%%' % pct_complete
elif pct_complete < 100:
pct_complete = ' %1.2f%%' % pct_complete
- rate = (tx_size / float(1024 * 1024)) / (tx_end - begin_time)
+ rate = (tx_size / 1e6) / (tx_end - begin_time)
self.tpc_vote(trans)
self.tpc_finish(trans)
More information about the checkins
mailing list