Skip to content

Commit

Permalink
Fix: #6099 - RRDtool issues after system restore
Browse files Browse the repository at this point in the history
* When transferring a system from a backup if the poller has not run recently rrdtool issues are found
  • Loading branch information
TheWitness committed Feb 11, 2025
1 parent db80934 commit 465f18e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Cacti CHANGELOG
1.2.30
-issue#6089: Cannot Add New User due to incorrect array structure
-issue#6090: Undefined function warnings in Automation
-issue#6099: When transferring a system from a backup if the poller has not run recently rrdtool issues are found

1.2.29
-security#GHSA-c5j8-jxj3-hh36: Authenticated RCE via multi-line SNMP responses
Expand Down
4 changes: 4 additions & 0 deletions lib/rrd.php
Original file line number Diff line number Diff line change
Expand Up @@ -1382,6 +1382,10 @@ function rrdtool_function_graph($local_graph_id, $rra_id, $graph_data_array, $rr
$delta_time = $default_delta;
}

if ($delta_time <= $graph_data_array['graph_start']) {
$delta_time = $now_time;
}

$graph_data_array['graph_end'] = $delta_time;
}

Expand Down

0 comments on commit 465f18e

Please sign in to comment.