From 00c14997cb95bf3e6c18c2264ef5e10642d89b3a Mon Sep 17 00:00:00 2001
From: Pawit Pornkitprasan
Date: Fri, 19 Jul 2013 11:23:45 +0900
Subject: migration: send total time in QMP at "completed" stage
The "completed" stage sets total_time but not has_total_time and
thus it is not sent via QMP reply (but sent via HMP nevertheless)
Signed-off-by: Pawit Pornkitprasan
Reviewed-by: Eric Blake
Reviewed-by: Orit Wasserman
Signed-off-by: Luiz Capitulino
---
migration.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/migration.c b/migration.c
index 9fc7294..3f682cd 100644
--- a/migration.c
+++ b/migration.c
@@ -231,6 +231,7 @@ MigrationInfo *qmp_query_migrate(Error **errp)
info->has_status = true;
info->status = g_strdup("completed");
+ info->has_total_time = true;
info->total_time = s->total_time;
info->has_downtime = true;
info->downtime = s->downtime;
--
cgit v1.1