mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 09:15:15 +02:00
Applied fix
This commit is contained in:
parent
f2eee8fde8
commit
13d7889cc4
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user