[email protected] wrote: > From: "Michael R. Hines" <[email protected]> > > This exposes throughput (in megabits/sec) through QMP. > > Reviewed-by: Paolo Bonzini <[email protected]> > Reviewed-by: Chegu Vinod <[email protected]> > Tested-by: Chegu Vinod <[email protected]> > Tested-by: Michael R. Hines <[email protected]> > Signed-off-by: Michael R. Hines <[email protected]> > @@ -154,8 +154,10 @@ void hmp_info_migrate(Monitor *mon, const QDict *qdict) > > if (info->has_status) { > monitor_printf(mon, "Migration status: %s\n", info->status); > - monitor_printf(mon, "total time: %" PRIu64 " milliseconds\n", > - info->total_time); > + if (info->has_total_time) { > + monitor_printf(mon, "total time: %" PRIu64 " milliseconds\n", > + info->total_time); > + } > if (info->has_expected_downtime) { > monitor_printf(mon, "expected downtime: %" PRIu64 " > milliseconds\n", > info->expected_downtime);
This chunk don't belong to this patch. for the rest: Reviewed-by: Juan Quintela <[email protected]>
