diff --git a/includes/common.php b/includes/common.php index dac3d5611..98188dba9 100644 --- a/includes/common.php +++ b/includes/common.php @@ -220,6 +220,7 @@ function set_dev_attrib($device, $attrib_type, $attrib_value) function get_dev_attribs($device) { +echo $device; $attribs = array(); foreach(dbFetchRow("SELECT * FROM devices_attribs WHERE `device_id` = ?", array($device)) as $entry) { diff --git a/poller.php b/poller.php index 4e9c56f26..fb4cf56a0 100755 --- a/poller.php +++ b/poller.php @@ -233,7 +233,7 @@ if (!$options['m']) if ($polled_devices) { - dbInsert(array('type' => 'poll', 'doing' => $doing, 'start' => $poller_start, 'duration' => $poller_time, 'device' => $polled_devices ), 'perf_times'); + dbInsert(array('type' => 'poll', 'doing' => $doing, 'start' => $poller_start, 'duration' => $poller_time, 'devices' => $polled_devices ), 'perf_times'); } $string = $argv[0] . " $doing " . date("F j, Y, G:i") . " - $polled_devices devices polled in $poller_time secs";