Commit 00c14997 authored by Pawit Pornkitprasan's avatar Pawit Pornkitprasan Committed by Luiz Capitulino
Browse files

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: default avatarPawit Pornkitprasan <p.pawit@gmail.com>
Reviewed-by: default avatarEric Blake <eblake@redhat.com>
Reviewed-by: default avatarOrit Wasserman <owasserm@redhat.com>
Signed-off-by: default avatarLuiz Capitulino <lcapitulino@redhat.com>
parent 1197cbb9
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;