VMM/common: Small code cleanup in human_size(). v0.6.x
authorPascal Volk <neverseen@users.sourceforge.net>
Fri, 11 Feb 2011 02:15:51 +0000
branchv0.6.x
changeset 394 d3a3c6155879
parent 393 fb2ba1456bc5
child 395 0a13849243f2
VMM/common: Small code cleanup in human_size().
VirtualMailManager/common.py
--- a/VirtualMailManager/common.py	Fri Feb 11 02:11:15 2011 +0000
+++ b/VirtualMailManager/common.py	Fri Feb 11 02:15:51 2011 +0000
@@ -78,7 +78,7 @@
             if unit != 'b':
                 return '%.2f%s' % (size / float(limit), unit)
             else:
-                return '%u%s' % (size / limit, unit)
+                return '%ub' % size
 
 
 def size_in_bytes(size):