Browse Source

Merge pull request #1039 from JackDandy/feature/AddLargeOutputSizes

Add 'PB', 'EB', 'ZB', 'YB' to recognised output sizes.
pull/1043/head
JackDandy 7 years ago
committed by GitHub
parent
commit
3af27c7eca
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGES.md
  2. 2
      sickbeard/helpers.py

1
CHANGES.md

@ -8,6 +8,7 @@
* 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 'PB', 'EB', 'ZB', 'YB' to recognised output sizes
### 0.13.10 (2018-01-08 17:20:00 UTC)

2
sickbeard/helpers.py

@ -275,7 +275,7 @@ def searchIndexerForShowID(regShowName, indexer=None, indexer_id=None, ui=None):
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:
return "%3.1f %s" % (num, x)
num /= 1024.0

Loading…
Cancel
Save