pisi should be ready

This commit is contained in:
Faik Uygur
2009-03-30 12:19:36 +00:00
parent 5e6635e4a2
commit c2f06635ed
+1 -1
View File
@@ -103,7 +103,7 @@ def remove_prefix(a,b):
return b[len(a):]
def human_readable_size(size = 0):
symbols, depth = [' B', 'KB', 'MB', 'GB'], 0
symbols, depth = [' B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'], 0
while size > 1000 and depth < 3:
size = float(size / 1024)