aboutsummaryrefslogtreecommitdiff
path: root/migration.c
diff options
context:
space:
mode:
authorPawit Pornkitprasan <p.pawit@gmail.com>2013-07-19 11:23:45 +0900
committerLuiz Capitulino <lcapitulino@redhat.com>2013-08-01 09:40:46 -0400
commit00c14997cb95bf3e6c18c2264ef5e10642d89b3a (patch)
treea424c82da97f7cde66ffa62cdb137c2ea1b7bba4 /migration.c
parent1197cbb9eda1dc82e2fa1815ca62bc3de158353e (diff)
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 <p.pawit@gmail.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Orit Wasserman <owasserm@redhat.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'migration.c')
-rw-r--r--migration.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/migration.c b/migration.c
index 9fc72943fb..3f682cdc7f 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;