mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-06 09:27:08 +00:00
avoid warning about uninitialized value
This commit is contained in:
parent
b0b756c14d
commit
94235c592c
@ -397,7 +397,7 @@ sub phase2 {
|
||||
my $xbzrlecachemiss = $stat->{"xbzrle-cache"}->{"cache-miss"} || 0;
|
||||
my $xbzrleoverflow = $stat->{"xbzrle-cache"}->{"overflow"} || 0;
|
||||
#reduce sleep if remainig memory if lower than the everage transfert
|
||||
$usleep = 300000 if $rem < $avglstat;
|
||||
$usleep = 300000 if $avglstat && $rem < $avglstat;
|
||||
|
||||
$self->log('info', "migration status: $stat->{status} (transferred ${trans}, " .
|
||||
"remaining ${rem}), total ${total})");
|
||||
|
Loading…
Reference in New Issue
Block a user