bugfix
This commit is contained in:
parent
020c84bdfc
commit
f160589370
@ -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",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user