mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-30 00:30:42 +00:00
vzdump: log reused information also if we run only <1s
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
13ddc7eb91
commit
bafae3ec84
@ -400,15 +400,19 @@ my $query_backup_status_loop = sub {
|
|||||||
}
|
}
|
||||||
|
|
||||||
my $duration = time() - $starttime;
|
my $duration = time() - $starttime;
|
||||||
if ($transferred && $duration) {
|
if ($transferred) {
|
||||||
my $transferred_h = bytes_to_human($transferred, 2);
|
my $transferred_h = bytes_to_human($transferred, 2);
|
||||||
my $mbps = $get_mbps->($transferred, $duration);
|
|
||||||
if ($reused) {
|
if ($reused) {
|
||||||
my $reused_h = bytes_to_human($reused, 2);
|
my $reused_h = bytes_to_human($reused, 2);
|
||||||
my $reuse_per = int($reused * 100 / $last_total);
|
my $reuse_per = int($reused * 100 / $last_total);
|
||||||
$self->loginfo("backup was done incrementally, reused $reused_h (${reuse_per}%)");
|
$self->loginfo("backup was done incrementally, reused $reused_h (${reuse_per}%)");
|
||||||
}
|
}
|
||||||
$self->loginfo("transferred $transferred_h in $duration seconds ($mbps)");
|
if ($duration) {
|
||||||
|
my $mbps = $get_mbps->($transferred, $duration);
|
||||||
|
$self->loginfo("transferred $transferred_h in $duration seconds ($mbps)");
|
||||||
|
} else {
|
||||||
|
$self->loginfo("transferred $transferred_h in <1 seconds");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!defined($pbs_features) && $last_zero) {
|
if (!defined($pbs_features) && $last_zero) {
|
||||||
|
Loading…
Reference in New Issue
Block a user