summaryrefslogtreecommitdiffstats
path: root/usr/local/www/graph.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/graph.php')
-rwxr-xr-xusr/local/www/graph.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr/local/www/graph.php b/usr/local/www/graph.php
index 6a227fa..c7c8c39 100755
--- a/usr/local/www/graph.php
+++ b/usr/local/www/graph.php
@@ -55,7 +55,11 @@ $ifnum = get_real_interface($ifnum);
$ifname=@$_GET["ifname"]?$_GET["ifname"]:"Interface $ifnum"; //Interface name that will be showed on top right of graph
/********* Other conf *******/
-$scale_type="up"; //Autoscale default setup : "up" = only increase scale; "follow" = increase and decrease scale according to current graphed datas
+if (isset($config["widgets"]["trafficgraphs"]["scale_type"]))
+ $scale_type = $config["widgets"]["trafficgraphs"]["scale_type"];
+else
+ $scale_type = "up";
+
$nb_plot=120; //NB plot in graph
if ($_GET["timeint"])
$time_interval = $_GET["timeint"]; //Refresh time Interval
OpenPOWER on IntegriCloud