mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-07 10:33:38 +00:00
Add 'PB', 'EB', 'ZB', 'YB' to recognised output sizes.
This commit is contained in:
parent
0af34178b5
commit
a730f41d46
2 changed files with 2 additions and 1 deletions
|
@ -8,6 +8,7 @@
|
||||||
|
|
||||||
* Fix Events shutdown (a manual start-up is required after updating to this fix)
|
* Fix Events shutdown (a manual start-up is required after updating to this fix)
|
||||||
* Add free space stat (if obtainable) of parent folder(s) to footer
|
* Add free space stat (if obtainable) of parent folder(s) to footer
|
||||||
|
* Add 'PB', 'EB', 'ZB', 'YB' to recognised output sizes
|
||||||
|
|
||||||
|
|
||||||
### 0.13.10 (2018-01-08 17:20:00 UTC)
|
### 0.13.10 (2018-01-08 17:20:00 UTC)
|
||||||
|
|
|
@ -275,7 +275,7 @@ def searchIndexerForShowID(regShowName, indexer=None, indexer_id=None, ui=None):
|
||||||
|
|
||||||
|
|
||||||
def sizeof_fmt(num):
|
def sizeof_fmt(num):
|
||||||
for x in ['bytes', 'KB', 'MB', 'GB', 'TB']:
|
for x in ['bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB']:
|
||||||
if num < 1024.0:
|
if num < 1024.0:
|
||||||
return "%3.1f %s" % (num, x)
|
return "%3.1f %s" % (num, x)
|
||||||
num /= 1024.0
|
num /= 1024.0
|
||||||
|
|
Loading…
Reference in a new issue