From 9223f8953c76e4234a12924fbc567065c7a1ae5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Rosiak?= Date: Thu, 6 Aug 2015 10:43:17 +0200 Subject: [PATCH] Fix uptime issues introduced in #1610 As stated --- includes/polling/functions.inc.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/includes/polling/functions.inc.php b/includes/polling/functions.inc.php index cba317bd8..4eb12609b 100644 --- a/includes/polling/functions.inc.php +++ b/includes/polling/functions.inc.php @@ -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";