Signed-off-by: Jiří Župka <jzu...@redhat.com>
---
 client/virt/kvm_monitor.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/client/virt/kvm_monitor.py b/client/virt/kvm_monitor.py
index a49fd18..1320ba5 100644
--- a/client/virt/kvm_monitor.py
+++ b/client/virt/kvm_monitor.py
@@ -6,6 +6,7 @@ Interfaces to the QEMU monitor.
 
 import socket, time, threading, logging, select, re
 import virt_utils, virt_passfd_setup
+from autotest.client.shared import utils
 try:
     import json
 except ImportError:
@@ -966,6 +967,7 @@ class QMPMonitor(Monitor):
         @param value: Speed in bytes/sec
         @return: The response to the command
         """
+        value = utils.convert_data_size(value, "M")
         args = {"value": value}
         return self.cmd("migrate_set_speed", args)
 
-- 
1.7.7.6

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to