mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-02 01:45:17 +00:00
qemu: Fix JSON migrate_set_downtime command
This commit is contained in:
parent
bee2ad895e
commit
72c791e430
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user