mirror of https://github.com/jimsalterjrs/sanoid
check for valid estimated send size to prevent a perl warning on systems which doesn't output size informations
This commit is contained in:
parent
22160deb8e
commit
f153810d08
5
syncoid
5
syncoid
|
|
@ -1154,6 +1154,11 @@ sub getsendsize {
|
|||
}
|
||||
chomp $sendsize;
|
||||
|
||||
# check for valid value
|
||||
if ($sendsize !~ /^\d+$/) {
|
||||
$sendsize = '';
|
||||
}
|
||||
|
||||
# to avoid confusion with a zero size pv, give sendsize
|
||||
# a minimum 4K value - or if empty, make sure it reads UNKNOWN
|
||||
if ($debug) { print "DEBUG: sendsize = $sendsize\n"; }
|
||||
|
|
|
|||
Loading…
Reference in New Issue