1 diff -ruBbd cacti-0.8.6i/lib/poller.php cacti-0.8.6i-patched/lib/poller.php
2 --- cacti-0.8.6i/lib/poller.php 2006-10-08 23:06:01.000000000 -0400
3 +++ cacti-0.8.6i-patched/lib/poller.php 2006-11-21 23:41:02.000000000 -0500
5 /* process_poller_output - grabs data from the 'poller_output' table and feeds the *completed*
6 results to RRDTool for processing
7 @arg $rrdtool_pipe - the array of pipes containing the file descriptor for rrdtool */
8 -function process_poller_output($rrdtool_pipe) {
9 +function process_poller_output($rrdtool_pipe, $remainder = FALSE) {
12 include_once($config["library_path"] . "/rrd.php");
14 /* let's count the number of rrd files we processed */
20 + $limit = "LIMIT 10000";
23 /* create/update the rrd files */
24 $results = db_fetch_assoc("select
28 from (poller_output,poller_item)
29 where (poller_output.local_data_id=poller_item.local_data_id and poller_output.rrd_name=poller_item.rrd_name)
33 if (sizeof($results) > 0) {
34 /* create an array keyed off of each .rrd file */
35 diff -ruBbd cacti-0.8.6i/poller.php cacti-0.8.6i-patched/poller.php
36 --- cacti-0.8.6i/poller.php 2006-10-08 23:06:01.000000000 -0400
37 +++ cacti-0.8.6i-patched/poller.php 2006-11-12 11:49:05.000000000 -0500
39 $polling_items = db_fetch_assoc("select poller_id,end_time from poller_time where poller_id = 0");
41 if (sizeof($polling_items) == $process_file_number) {
42 - $rrds_processed = $rrds_processed + process_poller_output($rrdtool_pipe);
43 + $rrds_processed = $rrds_processed + process_poller_output($rrdtool_pipe, TRUE);
45 /* take time and log performance data */
46 list($micro,$seconds) = split(" ", microtime());