This commit is contained in:
yumoqing 2026-08-04 14:40:18 +08:00
parent 020c84bdfc
commit f160589370

View File

@ -24,6 +24,8 @@ def fmt(sz):
else: return str(round(sz/(1024*1024),1)) + 'MB' else: return str(round(sz/(1024*1024),1)) + 'MB'
pct = min(round(size / (100*1024*1024) * 100, 1), 100) if size > 0 else 0 pct = min(round(size / (100*1024*1024) * 100, 1), 100) if size > 0 else 0
if pct > 100:
pct = 100
return json.dumps({ return json.dumps({
"widgettype": "VBox", "widgettype": "VBox",