Change humanFileSize to default to SI notation

This commit is contained in:
aaronldunlap 2020-01-23 17:09:39 -06:00 committed by GitHub
parent c8f132a750
commit aa5affe366
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1006,7 +1006,7 @@ def build_datatables_json(kwargs, dt_columns, default_sort_col=None):
return json.dumps(json_data)
def humanFileSize(bytes, si=False):
def humanFileSize(bytes, si=True):
if str(bytes).isdigit():
bytes = int(bytes)
else: