]> git.proxmox.com Git - qemu-server.git/commitdiff
backup: query status: use latest up-to-date info when finished
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 6 Jul 2020 19:46:03 +0000 (21:46 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 6 Jul 2020 19:59:50 +0000 (21:59 +0200)
we used the info from the previous loop for some summary logs, fix
that.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/VZDump/QemuServer.pm

index b9db0319e6039632d1d77742ad053ec6e95d3ea1..77dc20e763d05eb38b03798aacdc7a487b22d1e8 100644 (file)
@@ -331,6 +331,10 @@ my $query_backup_status_loop = sub {
                die (($status->{errmsg} || "unknown error") . "\n") if $res eq 'error';
                die "got unexpected status '$res'\n";
            }
+           $last_target = $target if $target;
+           $last_total = $total if $total;
+           $last_zero = $zero if $zero;
+           $last_transferred = $transferred if $transferred;
            last;
        }
        if ($percent != $last_percent && ($timediff > 2)) {