Merge pull request #1039 from JackDandy/feature/AddLargeOutputSizes

Add 'PB', 'EB', 'ZB', 'YB' to recognised output sizes.
This commit is contained in:
JackDandy 2018-01-15 03:04:12 +00:00 committed by GitHub
commit 3af27c7eca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -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)

View file

@ -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