]> git.proxmox.com Git - pve-manager.git/blobdiff - PVE/VZDump.pm
vzdump: render a duration of 0s as <1s
[pve-manager.git] / PVE / VZDump.pm
index 601cd56e64cd607091d1c2d4daea64008b68c27f..34969ca1dfbd518979cb0adfef81d10bcc975312 100644 (file)
@@ -677,6 +677,7 @@ sub exec_backup_task {
        return if !defined($task->{vmstoptime});
        $task->{vmconttime} //= time();
        my $delay = $task->{vmconttime} - $task->{vmstoptime};
+       $delay = '<1' if $delay < 1;
        debugmsg ('info', "guest is online again after $delay seconds", $logfd);
     };