]> git.ipfire.org Git - ipfire.org.git/commitdiff
Change format of size function.
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 18 Jan 2010 21:59:47 +0000 (22:59 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 18 Jan 2010 21:59:47 +0000 (22:59 +0100)
www/webapp/helpers.py

index dfa1d7ee619c2f2c47088219a9515fab310cbb09..50ecdd02ae9c1dd4f5962c7c2491fa71bf39c049 100644 (file)
@@ -22,4 +22,4 @@ def size(s):
                s /= 1024
                idx += 1
        
-       return "%.2f %s" % (s, suffixes[idx])
+       return "%.0f%s" % (s, suffixes[idx])