v1.4.0 socketio 적용

This commit is contained in:
joyfuI
2020-03-19 00:32:24 +09:00
parent 181b51fa1c
commit cce361fe79
6 changed files with 61 additions and 40 deletions

View File

@@ -109,7 +109,7 @@ class LogicNormal(object):
@staticmethod
def human_readable_size(size, suffix=''):
for unit in ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB']:
for unit in ('Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB'):
if size < 1024.0:
return '%3.1f %s%s' % (size, unit, suffix)
size /= 1024.0