---
src/qemu/qemu_monitor_json.c | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
diff --git a/src/qemu/qemu_monitor_json.c b/src/qemu/qemu_monitor_json.c
index e8609aa..8a586bc 100644
--- a/src/qemu/qemu_monitor_json.c
+++ b/src/qemu/qemu_monitor_json.c
@@ -1481,17 +1481,12 @@ int qemuMonitorJSONSetMigrationDowntime(qemuMonitorPtr mon,
unsigned long long downtime)
{
int ret;
- char *downtimestr;
virJSONValuePtr cmd;
virJSONValuePtr reply = NULL;
- if (virAsprintf(&downtimestr, "%llums", downtime) < 0) {
- virReportOOMError();
- return -1;
- }
+
cmd = qemuMonitorJSONMakeCommand("migrate_set_downtime",
- "s:value", downtimestr,
+ "d:value", downtime / 1000.0,
NULL);
- VIR_FREE(downtimestr);
if (!cmd)
return -1;
--
1.7.2