mirror of
https://github.com/librenms/librenms-agent.git
synced 2024-05-09 09:54:52 +00:00
Update gpsd
4s max time limit was causing some timeouts, especially given the two 1s sleeps. Especially with a lot of sentences coming back from the GPS chip it was probably not enough to always catch the right variables.
This commit is contained in:
@ -4,8 +4,8 @@
|
||||
$server = 'localhost';
|
||||
$port = 2947;
|
||||
|
||||
set_time_limit(4);
|
||||
ini_set('max_execution_time', 4);
|
||||
set_time_limit(6);
|
||||
ini_set('max_execution_time', 6);
|
||||
|
||||
|
||||
$sock = @fsockopen($server, $port, $errno, $errstr, 2);
|
||||
@ -50,4 +50,4 @@ if ($resp) {
|
||||
|
||||
function satellite_used($sat) {
|
||||
return $sat->used;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user