mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Merge pull request #1331 from phil-davis/patch-2
This commit is contained in:
commit
a0b72ec370
@ -143,6 +143,7 @@ if (isset($a_config["scale_type"])) {
|
||||
</script>
|
||||
|
||||
<?php
|
||||
$graphcounter = 0;
|
||||
foreach ($ifdescrs as $ifname => $ifdescr) {
|
||||
$ifinfo = get_interface_info($ifname);
|
||||
if ($shown[$ifname]) {
|
||||
@ -150,6 +151,7 @@ foreach ($ifdescrs as $ifname => $ifdescr) {
|
||||
$showgraphbutton = "none";
|
||||
$graphdisplay = "inline";
|
||||
$interfacevalue = "show";
|
||||
$graphcounter++;
|
||||
} else {
|
||||
$mingraphbutton = "none";
|
||||
$showgraphbutton = "inline";
|
||||
@ -171,7 +173,7 @@ foreach ($ifdescrs as $ifname => $ifdescr) {
|
||||
<div style="clear:both;"></div>
|
||||
</div>
|
||||
<div id="<?=$ifname;?>graphdiv" style="display:<?php echo $graphdisplay;?>">
|
||||
<object data="graph.php?ifnum=<?=$ifname;?>&ifname=<?=rawurlencode($ifdescr);?>&timeint=<?=$refreshinterval;?>&initdelay=<?=($graphcounter+1) * 2;?>" height="100%" width="100%">
|
||||
<object data="graph.php?ifnum=<?=$ifname;?>&ifname=<?=rawurlencode($ifdescr);?>&timeint=<?=$refreshinterval;?>&initdelay=<?=$graphcounter * 2;?>" height="100%" width="100%">
|
||||
<param name="id" value="graph" />
|
||||
<param name="type" value="image/svg+xml" />
|
||||
<param name="pluginspage" value="http://www.adobe.com/svg/viewer/install/auto" />
|
||||
|
||||
Loading…
Reference in New Issue
Block a user