mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-15 01:32:57 -07:00
Merge pull request #1363 from aaronldunlap/master
Change humanFileSize to default to SI notation
This commit is contained in:
commit
8fdd0ba0d9
1 changed files with 1 additions and 1 deletions
|
@ -1024,7 +1024,7 @@ def build_datatables_json(kwargs, dt_columns, default_sort_col=None):
|
||||||
return json.dumps(json_data)
|
return json.dumps(json_data)
|
||||||
|
|
||||||
|
|
||||||
def humanFileSize(bytes, si=False):
|
def humanFileSize(bytes, si=True):
|
||||||
if str(bytes).isdigit():
|
if str(bytes).isdigit():
|
||||||
bytes = cast_to_float(bytes)
|
bytes = cast_to_float(bytes)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue