[IMP] tools: add Tb
Tera byte is now common. closes odoo/odoo#33151 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
This commit is contained in:
committed by
GitHub
parent
46b0b33d06
commit
32eee7b6ec
+1
-1
@@ -467,7 +467,7 @@ def human_size(sz):
|
||||
"""
|
||||
if not sz:
|
||||
return False
|
||||
units = ('bytes', 'Kb', 'Mb', 'Gb')
|
||||
units = ('bytes', 'Kb', 'Mb', 'Gb', 'Tb')
|
||||
if isinstance(sz, str):
|
||||
sz=len(sz)
|
||||
s, i = float(sz), 0
|
||||
|
||||
Reference in New Issue
Block a user