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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
1 deletions
-
CHANGES.md
-
sickbeard/helpers.py
|
|
@ -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) |
|
|
|
|
|
@ -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 |
|
|
|