From 19ac33afdc11fb168a8f51ebe87fca08dbd58d00 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 25 Jan 2006 23:52:31 +0000 Subject: [PATCH] Port ifstats.c over to php. Ticket #784 --- usr/local/www/graph.php | 4 +- usr/local/www/ifstats.php | 79 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 81 insertions(+), 2 deletions(-) create mode 100644 usr/local/www/ifstats.php diff --git a/usr/local/www/graph.php b/usr/local/www/graph.php index b4c768365b..6a4dc60e87 100755 --- a/usr/local/www/graph.php +++ b/usr/local/www/graph.php @@ -39,8 +39,8 @@ $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=1; //Refresh time Interval -$fetch_link = "ifstats.cgi?$ifnum"; +$time_interval=2.5; //Refresh time Interval +$fetch_link = "ifstats.php?if=$ifnum"; //SVG attributes $attribs['axis']='fill="black" stroke="black"'; diff --git a/usr/local/www/ifstats.php b/usr/local/www/ifstats.php new file mode 100644 index 0000000000..0ba6e2775a --- /dev/null +++ b/usr/local/www/ifstats.php @@ -0,0 +1,79 @@ + \ No newline at end of file