From: Pawit Pornkitprasan <p.pa...@gmail.com>

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 <p.pa...@gmail.com>
Reviewed-by: Eric Blake <ebl...@redhat.com>
Reviewed-by: Orit Wasserman <owass...@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitul...@redhat.com>
---
 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;
-- 
1.8.1.4


Reply via email to