Applied fix

This commit is contained in:
Jose Gonzalez 2020-12-15 09:57:09 +01:00
parent f2eee8fde8
commit 13d7889cc4
1 changed files with 4 additions and 0 deletions

View File

@ -1556,6 +1556,10 @@ sub ping ($$) {
1 1
); );
# Set default values if config is not defined.
$timeout = 4 if !defined($timeout);
$retries = 4 if !defined($retries);
# Windows # Windows
if (($^O eq "MSWin32") || ($^O eq "MSWin32-x64") || ($^O eq "cygwin")){ if (($^O eq "MSWin32") || ($^O eq "MSWin32-x64") || ($^O eq "cygwin")){
$timeout *= 1000; # Convert the timeout to milliseconds. $timeout *= 1000; # Convert the timeout to milliseconds.