Browse code

Issue #956 - Fixes size reporting using k instead of K as it a multiple of 1024

Important note fot automatic scripts:
Output change: "125k" in will now be 125K

Florent Viard authored on 2018/07/22 22:06:24
Showing 1 changed files
... ...
@@ -194,7 +194,7 @@ __all__.append("dateRFC822toUnix")
194 194
 def formatSize(size, human_readable = False, floating_point = False):
195 195
     size = floating_point and float(size) or int(size)
196 196
     if human_readable:
197
-        coeffs = ['k', 'M', 'G', 'T']
197
+        coeffs = ['K', 'M', 'G', 'T']
198 198
         coeff = ""
199 199
         while size > 2048:
200 200
             size /= 1024