From f8b2f37701034c595caa9131ddf7911c4b5dd64d Mon Sep 17 00:00:00 2001 From: Larry Adams Date: Mon, 9 May 2005 02:46:25 +0000 Subject: [PATCH] add organic graphs back to Cacti with RRDTool 1.2.x git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/branches/BRANCH_0_8_6/cacti@2773 860744bd-22fc-0310-8c96-e9fe5004b5ca --- lib/rrd.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/rrd.php b/lib/rrd.php index 0ff6637292..bbd1f93d6f 100644 --- a/lib/rrd.php +++ b/lib/rrd.php @@ -698,6 +698,11 @@ function rrdtool_function_graph($local_graph_id, $rra_id, $graph_data_array, $rr "$graph_legend" . "--vertical-label=\"" . $graph["vertical_label"] . "\"" . RRD_NL; + /* rrdtool 1.2.x does not provide smooth lines, let's force it */ + if (read_config_option("rrdtool_version") == "rrd-1.2.x") { + $graph_opts .= "--slope-mode" . RRD_NL; + } + /* rrdtool 1.2 font options */ if (read_config_option("rrdtool_version") == "rrd-1.2.x") { /* title fonts */