Эх сурвалжийг харах

tools/qvm-ls: clarify that disk usage is in percents

Marek Marczykowski-Górecki 6 жил өмнө
parent
commit
8584ca4057

+ 1 - 1
qubesadmin/tools/qvm_ls.py

@@ -325,7 +325,7 @@ def calc_used(vm, volume_name):
     if size == 0:
         return 0
     usage = calc_usage(vm, volume_name)
-    return usage * 100 // size
+    return '{}%'.format(usage * 100 // size)
 
 
 # todo maxmem