summaryrefslogtreecommitdiffstats
path: root/module/FileDatabase.py
diff options
context:
space:
mode:
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: