mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-03 20:01:16 +00:00
qemu: Silence coverity on optional migration stats
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
parent
3a8688162e
commit
1ffff046ac
@ -2489,7 +2489,8 @@ qemuMonitorJSONGetMigrationStatusReply(virJSONValuePtr reply,
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
virJSONValueObjectGetNumberUlong(ret, "total-time", &status->total_time);
|
ignore_value(virJSONValueObjectGetNumberUlong(ret, "total-time",
|
||||||
|
&status->total_time));
|
||||||
if (status->status == QEMU_MONITOR_MIGRATION_STATUS_COMPLETED) {
|
if (status->status == QEMU_MONITOR_MIGRATION_STATUS_COMPLETED) {
|
||||||
rc = virJSONValueObjectGetNumberUlong(ret, "downtime",
|
rc = virJSONValueObjectGetNumberUlong(ret, "downtime",
|
||||||
&status->downtime);
|
&status->downtime);
|
||||||
@ -2534,9 +2535,10 @@ qemuMonitorJSONGetMigrationStatusReply(virJSONValuePtr reply,
|
|||||||
if (virJSONValueObjectGetNumberUlong(ram, "duplicate",
|
if (virJSONValueObjectGetNumberUlong(ram, "duplicate",
|
||||||
&status->ram_duplicate) == 0)
|
&status->ram_duplicate) == 0)
|
||||||
status->ram_duplicate_set = true;
|
status->ram_duplicate_set = true;
|
||||||
virJSONValueObjectGetNumberUlong(ram, "normal", &status->ram_normal);
|
ignore_value(virJSONValueObjectGetNumberUlong(ram, "normal",
|
||||||
virJSONValueObjectGetNumberUlong(ram, "normal-bytes",
|
&status->ram_normal));
|
||||||
&status->ram_normal_bytes);
|
ignore_value(virJSONValueObjectGetNumberUlong(ram, "normal-bytes",
|
||||||
|
&status->ram_normal_bytes));
|
||||||
|
|
||||||
virJSONValuePtr disk = virJSONValueObjectGet(ret, "disk");
|
virJSONValuePtr disk = virJSONValueObjectGet(ret, "disk");
|
||||||
if (disk) {
|
if (disk) {
|
||||||
|
Loading…
Reference in New Issue
Block a user