Change humanFileSize to default to SI notation
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user