summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xwebapp.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/webapp.py b/webapp.py
index d91d724..0d9e3f9 100755
--- a/webapp.py
+++ b/webapp.py
@@ -22,18 +22,18 @@ from dedup.utils import fetchiter
jinjaenv = jinja2.Environment(loader=jinja2.PackageLoader("dedup", "templates"))
def format_size(size):
- size = float(size)
+ sizef = float(size)
fmt = "%d B"
- if size >= 1024:
- size /= 1024
+ if sizef >= 1024:
+ sizef /= 1024
fmt = "%.1f KB"
- if size >= 1024:
- size /= 1024
+ if sizef >= 1024:
+ sizef /= 1024
fmt = "%.1f MB"
- if size >= 1024:
- size /= 1024
+ if sizef >= 1024:
+ sizef /= 1024
fmt = "%.1f GB"
- return fmt % size
+ return fmt % sizef
def function_combination(function1, function2):
if function1 == function2: