Files
librenms-librenms/html/pages/device/port/realtime.inc.php
T
Adam Amstrong 9ec5bfd8b1 cleanup realtime :)
git-svn-id: http://www.observium.org/svn/observer/trunk@2426 61d68cd4-352d-0410-923a-c4978735b2b8
2011-09-08 03:31:21 +00:00

19 lines
595 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="1000" height="400">
<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>