aboutsummaryrefslogtreecommitdiff
path: root/hmp.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2012-08-13 09:35:16 +0200
committerJuan Quintela <quintela@redhat.com>2012-10-17 18:34:58 +0200
commit9c5a9fcf5399450a873e7460b397a89447c7ef11 (patch)
tree2239b9018b2cee4ed44bbdf89ceb0fafca275e48 /hmp.c
parent97d4d961d98c1ad54eee657d81e2e50911a92acf (diff)
migration: print total downtime for final phase of migration
Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Diffstat (limited to 'hmp.c')
-rw-r--r--hmp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hmp.c b/hmp.c
index 70bdec2433..a8e5aea7c3 100644
--- a/hmp.c
+++ b/hmp.c
@@ -152,6 +152,10 @@ void hmp_info_migrate(Monitor *mon)
monitor_printf(mon, "Migration status: %s\n", info->status);
monitor_printf(mon, "total time: %" PRIu64 " milliseconds\n",
info->total_time);
+ if (info->has_downtime) {
+ monitor_printf(mon, "downtime: %" PRIu64 " milliseconds\n",
+ info->downtime);
+ }
}
if (info->has_ram) {