summaryrefslogtreecommitdiffstats
path: root/module/FileDatabase.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-10-03 20:53:22 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-10-03 20:53:22 +0200
commit405aa7a9953481a39a4f08f3677fbe9e1523f997 (patch)
treea62686503ac94118b2f282c34c00512dabff0339 /module/FileDatabase.py
parentshareonline expire date fix (diff)
downloadpyload-405aa7a9953481a39a4f08f3677fbe9e1523f997.tar.xz
time settings for accounts
Diffstat (limited to 'module/FileDatabase.py')
-rw-r--r--module/FileDatabase.py5
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: