diff options
author | Scott Dale <sdale@pfsense.org> | 2007-05-24 02:46:51 +0000 |
---|---|---|
committer | Scott Dale <sdale@pfsense.org> | 2007-05-24 02:46:51 +0000 |
commit | 358cb12c73e6fd1abe38cee04901044f2195e939 (patch) | |
tree | 16ce2e5c68784f970b47ec5ad88b804cdb464288 | |
parent | 15173791bf7c121a9993b84722afa1a3e84b2edc (diff) | |
download | pfsense-358cb12c73e6fd1abe38cee04901044f2195e939.zip pfsense-358cb12c73e6fd1abe38cee04901044f2195e939.tar.gz |
Allow graph to receive incoming refresh interval. Default is 1 sec.
-rwxr-xr-x | usr/local/www/graph.php | 5 |
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}"; |