mirror of https://github.com/jumpserver/jumpserver
[Update] 修复磁盘显示单位问题
parent
42ff5a382a
commit
fbfbfcc274
|
@ -106,7 +106,7 @@ def capacity_convert(size, expect='auto', rate=1000):
|
|||
|
||||
if expect == 'auto':
|
||||
for unit, rate_ in rate_mapping.items():
|
||||
if rate > std_size/rate_ > 1:
|
||||
if rate > std_size/rate_ >= 1 or unit == "T":
|
||||
expect = unit
|
||||
break
|
||||
|
||||
|
|
Loading…
Reference in New Issue