mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
@@ -265,12 +265,10 @@ function poll_device($device, $options) {
|
||||
rrdtool_update($ping_rrd, "N:$ping_time");
|
||||
}
|
||||
|
||||
$update_array = array(
|
||||
'last_polled' => array('NOW()'),
|
||||
'last_polled_timetaken' => $device_time,
|
||||
'last_ping' => array('NOW()'),
|
||||
'last_ping_timetaken' => $ping_time,
|
||||
);
|
||||
$update_array['last_polled'] = array('NOW()');
|
||||
$update_array['last_polled_timetaken'] = $device_time;
|
||||
$update_array['last_ping'] = array('NOW()');
|
||||
$update_array['last_ping_timetaken'] = $ping_time;
|
||||
|
||||
// echo("$device_end - $device_start; $device_time $device_run");
|
||||
echo "Polled in $device_time seconds\n";
|
||||
|
Reference in New Issue
Block a user