summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xusr/local/www/graph.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/local/www/graph.php b/usr/local/www/graph.php
index d60951b..c07b657 100755
--- a/usr/local/www/graph.php
+++ b/usr/local/www/graph.php
@@ -38,7 +38,10 @@ $ifname=@$_GET["ifname"]?$_GET["ifname"]:"Interface $ifnum"; //Interface name t
/********* Other conf *******/
$scale_type="up"; //Autoscale default setup : "up" = only increase scale; "follow" = increase and decrease scale according to current graphed datas
$nb_plot=120; //NB plot in graph
-$time_interval=3; //Refresh time Interval
+if ($_GET["timeint"])
+ $time_interval = $_GET["timeint"]; //Refresh time Interval
+else
+ $time_interval = 1;
$fetch_link = "ifstats.php?if={$ifnum}";
OpenPOWER on IntegriCloud