From 993b5c5ead96662639696035f9d8c8bc8f7ba2f2 Mon Sep 17 00:00:00 2001 From: Geert Hauwaerts Date: Fri, 13 May 2011 12:55:01 +0000 Subject: [PATCH] BUGFIX: Typo fix in SQL query. git-svn-id: http://www.observium.org/svn/observer/trunk@2304 61d68cd4-352d-0410-923a-c4978735b2b8 --- includes/common.php | 1 + poller.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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";