Adding total traffic per device graph generation

git-svn-id: http://www.observium.org/svn/observer/trunk@57 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2007-04-04 14:25:17 +00:00
parent d4c81b44ea
commit 5154885182
4 changed files with 97 additions and 8 deletions

View File

@@ -68,6 +68,11 @@ function generatedevicelink($device, $text=0) {
return $link;
}
function device_traffic_image($device, $width, $height, $from, $to) {
return "<img src='graph.php?device=" . $device . "&type=device_bits&from=" . $from . "&to=" . $to . "&width=" . $width . "&height=" . $height . "' />";
}
function devclass($device) {
if ($device['status'] == '0') { $class = "list-device-down"; } else { $class = "list-device"; }
if ($device['ignore'] == '1') {