[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:
Florent de Labarre
2019-05-03 16:41:01 +00:00
committed by GitHub
parent 46b0b33d06
commit 32eee7b6ec
+1 -1
View File
@@ -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