--- /usr/local/www/widgets/widgets/traffic_graphs.widget.php 2013-05-14 20:32:48.000000000 -0400
+++ traffic_graphs.widget.php 2013-05-14 20:45:11.000000000 -0400
@@ -59,6 +59,9 @@
if (isset($_POST["refreshinterval"])) {
$a_config["refreshinterval"] = $_POST["refreshinterval"];
}
+ if (isset($_POST["scale_type"])) {
+ $a_config["scale_type"] = $_POST["scale_type"];
+ }
$a_config["shown"]["item"] = array();
foreach ($ifdescrs as $ifname => $ifdescr) {
$state = $_POST["shown"][$ifname];
@@ -86,6 +89,12 @@
$refreshinterval = 10;
}
+if (isset($a_config["scale_type"])) {
+ $scale_type = $a_config["scale_type"];
+} else {
+ $scale_type = up;
+}
+
?>
@@ -100,6 +109,22 @@
$ifdescr) { ?>
" />
+ Default AutoScale:
+
+ onchange="updateGraphDisplays();" /> up
+ onchange="updateGraphDisplays();" /> follow
Refresh Interval: