diff options
author | jim-p <jimp@pfsense.org> | 2010-10-11 17:10:35 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2010-10-11 17:10:35 -0400 |
commit | 9228de6c4d231ab1325014e8341f5d0f981a0af0 (patch) | |
tree | 58055cb0e6fa81e13f2bc837d67d711cb2826787 /usr/local/www/widgets | |
parent | 719dcffb6e6bef6e911fe570067699917cccbc84 (diff) | |
download | pfsense-9228de6c4d231ab1325014e8341f5d0f981a0af0.zip pfsense-9228de6c4d231ab1325014e8341f5d0f981a0af0.tar.gz |
Fix graph staggering, the old method was causing the graphs to diverge in update intervals over time.
Diffstat (limited to 'usr/local/www/widgets')
-rw-r--r-- | usr/local/www/widgets/widgets/traffic_graphs.widget.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/usr/local/www/widgets/widgets/traffic_graphs.widget.php b/usr/local/www/widgets/widgets/traffic_graphs.widget.php index 12e5196..bcc2298 100644 --- a/usr/local/www/widgets/widgets/traffic_graphs.widget.php +++ b/usr/local/www/widgets/widgets/traffic_graphs.widget.php @@ -80,7 +80,6 @@ Refresh Interval: </script> <?php - foreach ($ifdescrs as $ifdescr => $ifname) { $ifinfo = get_interface_info($ifdescr); $currentgraph = $showngraphlist[$graphcounter]; @@ -112,7 +111,6 @@ Refresh Interval: } } - if ($ifinfo['status'] != "down") { ?> <div id="<?=$ifname;?>trafficdiv" style="padding: 5px"> @@ -128,8 +126,7 @@ Refresh Interval: <div style="clear:both;"></div> </div> <div id="<?=$ifname;?>graphdiv" style="display:<?php echo $graphdisplay;?>"> - <?php $refreshInterval = $refreshInterval + 3 ?> - <embed id="graph" src="graph.php?ifnum=<?=$ifdescr;?>&ifname=<?=rawurlencode($ifname);?>&timeint=<?=$refreshInterval;?>" type="image/svg+xml" width="<? echo $width; ?>" height="<? echo $height; ?>" pluginspage="http://www.adobe.com/svg/viewer/install/auto" /> + <embed id="graph" src="graph.php?ifnum=<?=$ifdescr;?>&ifname=<?=rawurlencode($ifname);?>&timeint=<?=$refreshInterval;?>&initdelay=<?=($graphcounter+1) * 2;?>" type="image/svg+xml" width="<? echo $width; ?>" height="<? echo $height; ?>" pluginspage="http://www.adobe.com/svg/viewer/install/auto" /> </div> <? $firstgraphshown = true; $graphcounter++; ?> </div> |