qemu: Fix JSON migrate_set_downtime command

This commit is contained in:
Jiri Denemark 2010-08-19 15:59:25 +02:00
parent bee2ad895e
commit 72c791e430

View File

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