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.
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.