From 5dd17a7305f8f9c4458015175e3594caa9f8b2b8 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Tue, 7 Feb 2012 16:22:04 +0100 Subject: [PATCH] dom0/qubesutils: minor fixes --- dom0/qvm-core/qubesutils.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dom0/qvm-core/qubesutils.py b/dom0/qvm-core/qubesutils.py index 9772827a..c5d1bbf1 100644 --- a/dom0/qvm-core/qubesutils.py +++ b/dom0/qvm-core/qubesutils.py @@ -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: @@ -274,7 +274,7 @@ def run_in_vm(vm, command, verbose = True, autostart = False, notify_function = if passio_popen: p = subprocess.Popen (args, stdout=subprocess.PIPE) return p - if not wait: + if not wait: args += ["-e"] return subprocess.call(args)