dom0/qubesutils: minor fixes

This commit is contained in:
Marek Marczykowski 2012-02-07 16:22:04 +01:00
parent 24173989b3
commit 5dd17a7305

View File

@ -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: