dom0/qubesutils: minor fixes
This commit is contained in:
parent
24173989b3
commit
5dd17a7305
@ -42,15 +42,15 @@ import xen.lowlevel.xs
|
||||
|
||||
def mbytes_to_kmg(size):
|
||||
if size > 1024:
|
||||
return "%d GB" % (size/1024)
|
||||
return "%d GiB" % (size/1024)
|
||||
else:
|
||||
return "%d MB" % size
|
||||
return "%d MiB" % size
|
||||
|
||||
def kbytes_to_kmg(size):
|
||||
if size > 1024:
|
||||
return mbytes_to_kmg(size/1024)
|
||||
else:
|
||||
return "%d KB" % size
|
||||
return "%d KiB" % size
|
||||
|
||||
def bytes_to_kmg(size):
|
||||
if size > 1024:
|
||||
|
Loading…
Reference in New Issue
Block a user