diff --git a/html/graph-realtime.php b/html/graph-realtime.php index dcbbeef33..e120d1990 100755 --- a/html/graph-realtime.php +++ b/html/graph-realtime.php @@ -41,17 +41,19 @@ $ifname=$device['hostname']. " ". @$port['ifDescr']; //Interface name that will /********* Other conf *******/ $scale_type="follow"; //Autoscale default setup : "up" = only increase scale; "follow" = increase and decrease scale according to current graphed datas $nb_plot=240; //NB plot in graph + if(is_numeric($_GET['interval'])) { $time_interval=$_GET['interval']; } else { $time_interval=1; //Refresh time Interval } + $fetch_link = "data.php?id=".$_GET[id]; //SVG attributes $attribs['axis']='fill="black" stroke="black"'; -$attribs['in']='fill="#435370" font-family="Tahoma, Verdana, Arial, Helvetica, sans-serif" font-size="7"'; -$attribs['out']='fill="#8092B3" font-family="Tahoma, Verdana, Arial, Helvetica, sans-serif" font-size="7"'; +$attribs['in']='fill="green" font-family="Tahoma, Verdana, Arial, Helvetica, sans-serif" font-size="7"'; +$attribs['out']='fill="blue" font-family="Tahoma, Verdana, Arial, Helvetica, sans-serif" font-size="7"'; $attribs['graph_in']='fill="none" stroke="green" stroke-opacity="0.8"'; $attribs['graph_out']='fill="none" stroke="blue" stroke-opacity="0.8"'; $attribs['legend']='fill="black" font-family="Tahoma, Verdana, Arial, Helvetica, sans-serif" font-size="4"'; diff --git a/html/pages/device/port/realtime.inc.php b/html/pages/device/port/realtime.inc.php index 1678adc11..0784ceef1 100644 --- a/html/pages/device/port/realtime.inc.php +++ b/html/pages/device/port/realtime.inc.php @@ -1,5 +1,47 @@ "); } +echo("0.25s"); +if ($_GET['optc'] == "0.25" || !$_GET['optc']) { echo(""); } + +echo(" | "); + +if ($_GET['optc'] == "1" || !$_GET['optc']) { echo(""); } +echo("1s"); +if ($_GET['optc'] == "1" || !$_GET['optc']) { echo(""); } + + +echo(" | "); + +if ($_GET['optc'] == "2" || !$_GET['optc']) { echo(""); } +echo("2s"); +if ($_GET['optc'] == "2" || !$_GET['optc']) { echo(""); } + +echo(" | "); + +if ($_GET['optc'] == "5" || !$_GET['optc']) { echo(""); } +echo("5s"); +if ($_GET['optc'] == "5" || !$_GET['optc']) { echo(""); } + +echo(" | "); + +if ($_GET['optc'] == "15" || !$_GET['optc']) { echo(""); } +echo("15s"); +if ($_GET['optc'] == "15" || !$_GET['optc']) { echo(""); } + +echo(" | "); + +if ($_GET['optc'] == "60" || !$_GET['optc']) { echo(""); } +echo("60s"); +if ($_GET['optc'] == "60" || !$_GET['optc']) { echo(""); } + +print_optionbar_end(); + + ### FIXME - do this in a function and/or do it in graph-realtime.php if($device['os'] == "linux") { @@ -8,9 +50,11 @@ if($device['os'] == "linux") { $interval = "2"; } +if($_GET['optc']) { $interval = $_GET['optc']; } + ?> -
+
Your browser does not support the type SVG! You need to either use Firefox or download the Adobe SVG plugin.