Code: Select all
$ diff tmp/cacti-0.8.6c/lib/poller.php htdocs/lib/poller.php
198a199,205
> /* Prefer an existing key if we already have entries key'd off a unix_time within one sec */
> if ( is_array($rrd_update_array{$item["rrd_path"]}) && array_key_exists("times",$rrd_update_array{$item["rrd_path"]}) && array_key_exists($unix_time-1,$rrd_update_array{$item["rrd_path"]}["times"]) ) {
> $unix_time--;
> } elseif (is_array($rrd_update_array{$item["rrd_path"]}) && array_key_exists("times",$rrd_update_array{$item["rrd_path"]}) && array_key_exists($unix_time+1,$rrd_update_array{$item["rrd_path"]}["times"])) {
> $unix_time++;
> }
>
237a245,250
> /* Prefer an existing key if we already have entries key'd off a unix_time within one sec */
> if ( is_array($rrd_update_array{$item["rrd_path"]}) && array_key_exists("times",$rrd_update_array{$item["rrd_path"]}) && array_key_exists($unix_time-1,$rrd_update_array{$item["rrd_path"]}["times"])) {
> $unix_time--;
> } elseif ( is_array($rrd_update_array{$item["rrd_path"]}) && array_key_exists("times",$rrd_update_array{$item["rrd_path"]}) && array_key_exists($unix_time+1,$rrd_update_array{$item["rrd_path"]}["times"])) {
> $unix_time++;
> }
I tried changing the mysql NOW() calls in cmd.php to a single php time() call but that didn't seem to fix things.