From b7305bbaf4f5daae5d98221fd959b2c0010c9fda Mon Sep 17 00:00:00 2001 From: Ian Berry Date: Wed, 21 Jul 2004 01:46:28 +0000 Subject: [PATCH] remove debug; add function header git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@1790 860744bd-22fc-0310-8c96-e9fe5004b5ca --- lib/poller.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/poller.php b/lib/poller.php index c4fcd305ce..59925ca659 100644 --- a/lib/poller.php +++ b/lib/poller.php @@ -160,6 +160,9 @@ function update_reindex_cache($host_id, $data_query_id) { } } +/* process_poller_output - grabs data from the 'poller_output' table and feeds the *completed* + results to RRDTool for processing + @arg $rrdtool_pipe - the array of pipes containing the file descriptor for rrdtool */ function process_poller_output($rrdtool_pipe) { global $config; @@ -191,7 +194,6 @@ function process_poller_output($rrdtool_pipe) { if ($item["rrd_num"] <= sizeof($rrd_update_array{$item["rrd_path"]}["items"])) { db_execute("delete from poller_output where local_data_id='" . $item["local_data_id"] . "' and rrd_name='" . $item["rrd_name"] . "' and time='" . $item["time"] . "'"); }else{ - print "waiting on ds#" . $item["local_data_id"] . "\n"; unset($rrd_update_array{$item["rrd_path"]}); } }