diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-02-01 22:11:55 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-02-01 22:11:55 +0100 |
commit | dad87afe2f73d6f456e9cb00b0d8ce7f5cee0140 (patch) | |
tree | e093ac6b486cf1f94d63ac2844c1276f68b916e4 /module | |
parent | doc for crypter plugin (diff) | |
download | pyload-dad87afe2f73d6f456e9cb00b0d8ce7f5cee0140.tar.xz |
fix for huge (or wrong) sizes
Diffstat (limited to 'module')
-rw-r--r-- | module/utils/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/utils/__init__.py b/module/utils/__init__.py index 592bdbd7e..cdad1d222 100644 --- a/module/utils/__init__.py +++ b/module/utils/__init__.py @@ -66,7 +66,7 @@ def formatSize(size): """formats size of bytes""" size = int(size) steps = 0 - sizes = ["B", "KiB", "MiB", "GiB", "TiB"] + sizes = ("B", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB") while size > 1000: size /= 1024.0 steps += 1 |