add realtime port page

git-svn-id: http://www.observium.org/svn/observer/trunk@2425 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2011-09-08 03:09:04 +00:00
parent b03bb8181c
commit 3db21058d5

View File

@ -0,0 +1,18 @@
<?php
### FIXME - do this in a function and/or do it in graph-realtime.php
if($device['os'] == "linux") {
$interval = "15";
} else {
$interval = "2";
}
?>
<div align="center">
<object data="graph-realtime.php?type=bits&id=<?php echo($interface['interface_id'] . "&interval=".$interval); ?>" type="image/svg+xml" width="800" height="375">
<param name="src" value="graph.php?type=bits&id=<?php echo($interface['interface_id'] . "&interval=".$interval); ?>" />
Your browser does not support the type SVG! You need to either use Firefox or download the Adobe SVG plugin.
</object>
</div>