Cacti / plugin_gexport

Cacti Graph Export Plugin
GNU General Public License v2.0
12 stars 9 forks source link

Fix incorrect export time range #27

Closed TonyBunce closed 6 years ago

TonyBunce commented 6 years ago

Current graphs are exported will all of the steps of an RRA and ignores the graph timespan. This creates graphs that look different in the export than they look in the cacti web interface. For example if you have a Monthly RRA that has 2 months of retention but a 1 month timespan the web UI will show 1 month of data but the exported graph will show 2 months of data.

This patch uses the same logic as graph.php to use the RRA timespan to export graphs with the correct date range.