Important note fot automatic scripts:
Output change: "125k" in will now be 125K
... | ... |
@@ -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 |