diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-10-03 20:53:22 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-10-03 20:53:22 +0200 |
commit | 405aa7a9953481a39a4f08f3677fbe9e1523f997 (patch) | |
tree | a62686503ac94118b2f282c34c00512dabff0339 /module/FileDatabase.py | |
parent | shareonline expire date fix (diff) | |
download | pyload-405aa7a9953481a39a4f08f3677fbe9e1523f997.tar.xz |
time settings for accounts
Diffstat (limited to 'module/FileDatabase.py')
-rw-r--r-- | module/FileDatabase.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/module/FileDatabase.py b/module/FileDatabase.py index 793a4a69e..6e6537f38 100644 --- a/module/FileDatabase.py +++ b/module/FileDatabase.py @@ -62,13 +62,12 @@ def formatSize(size): size = int(size) steps = 0 sizes = ["B", "KB", "MB", "GB", "TB"] - + while size > 1000: size /= 1024.0 steps += 1 - - return "%.2f %s" % (size, sizes[steps]) + return "%.2f %s" % (size, sizes[steps]) ######################################################################## class FileHandler: |