mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-01 23:47:40 +00:00
[Update] 修复磁盘显示单位问题
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user