Adam Amstrong 3db21058d5 add realtime port page
git-svn-id: http://www.observium.org/svn/observer/trunk@2425 61d68cd4-352d-0410-923a-c4978735b2b8
2011-09-08 03:09:04 +00:00

19 lines
594 B
PHP

<?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>