Sfoglia il codice sorgente

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

Marek Marczykowski-Górecki 6 anni fa
parent
commit
8584ca4057
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      qubesadmin/tools/qvm_ls.py

+ 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