Skip to content

Commit

Permalink
migration: send total time in QMP at "completed" stage
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
pawitp authored and Luiz Capitulino committed Aug 1, 2013
1 parent 1197cbb commit 00c1499
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions migration.c
Expand Up @@ -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;
Expand Down

0 comments on commit 00c1499

Please sign in to comment.