diff --git a/AUTHORS b/AUTHORS index 449a45032b8743729914ce3f6d1b05237a3b4494..16c755daa1a7f4440008a56da1fa7f1716de3e56 100644 --- a/AUTHORS +++ b/AUTHORS @@ -135,6 +135,7 @@ Patches have also been contributed by: John Morrissey Osier Yang Kamezawa Hiroyuki + Wen Congyang [....send patches to get your name here....] diff --git a/src/qemu/qemu_monitor_json.c b/src/qemu/qemu_monitor_json.c index da51a4f5a8528f4416691642a774b0f8c9ce2866..ec6b720fa0339448331b237c9b66c367d88e69d9 100644 --- a/src/qemu/qemu_monitor_json.c +++ b/src/qemu/qemu_monitor_json.c @@ -1453,17 +1453,11 @@ int qemuMonitorJSONSetMigrationSpeed(qemuMonitorPtr mon, unsigned long bandwidth) { int ret; - char *bandwidthstr; virJSONValuePtr cmd; virJSONValuePtr reply = NULL; - if (virAsprintf(&bandwidthstr, "%lum", bandwidth) < 0) { - virReportOOMError(); - return -1; - } cmd = qemuMonitorJSONMakeCommand("migrate_set_speed", - "s:value", bandwidthstr, + "U:value", bandwidth * 1024ULL * 1024ULL, NULL); - VIR_FREE(bandwidthstr); if (!cmd) return -1;