mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fixed ./includes/polling/applications/rrdcached.inc.php for php 53
This commit is contained in:
@ -53,7 +53,8 @@ if ($agent_data['app']['rrdcached']) {
|
|||||||
while ($max == -1 || $count < $max) {
|
while ($max == -1 || $count < $max) {
|
||||||
$data .= fgets($sock, 128);
|
$data .= fgets($sock, 128);
|
||||||
if ($max == -1) {
|
if ($max == -1) {
|
||||||
$max = explode(' ', $data)[0] + 1;
|
$tmp_max = explode(' ', $data);
|
||||||
|
$max = $tmp_max[0]+1;
|
||||||
}
|
}
|
||||||
$count++;
|
$count++;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user