From bcb83c9e9a1a02b4e5965e370754e13b0f17fbf7 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Fri, 7 Nov 2014 11:04:03 +0545 Subject: Reintroduce graphcounter var to traffic_graphs.widget.php This counter got lost in commit https://github.com/pfsense/pfsense/commit/ee965a5c7bf37b852795e1201688e3b20bf3d8d1 But the code at line 174 was still using it to offset the start time of each shown graph by 2 seconds, which I guess helps the graph data collection requests back to the pfSense to be staggered, not all having to be serviced at almost exactly the same time. I noticed this while having a quick look at all the traffic graph widget code to see if there was an obvious place where the 2x bandwidth graphing problem happens. The "* 2" here in line 174 has nothing to do with that! --- usr/local/www/widgets/widgets/traffic_graphs.widget.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'usr/local') diff --git a/usr/local/www/widgets/widgets/traffic_graphs.widget.php b/usr/local/www/widgets/widgets/traffic_graphs.widget.php index 3f9bba7..a876203 100644 --- a/usr/local/www/widgets/widgets/traffic_graphs.widget.php +++ b/usr/local/www/widgets/widgets/traffic_graphs.widget.php @@ -141,6 +141,7 @@ if (isset($a_config["scale_type"])) { $ifdescr) { $ifinfo = get_interface_info($ifname); if ($shown[$ifname]) { @@ -148,6 +149,7 @@ foreach ($ifdescrs as $ifname => $ifdescr) { $showgraphbutton = "none"; $graphdisplay = "inline"; $interfacevalue = "show"; + $graphcounter++; } else { $mingraphbutton = "none"; $showgraphbutton = "inline"; @@ -169,7 +171,7 @@ foreach ($ifdescrs as $ifname => $ifdescr) {
- + -- cgit v1.1