mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
@@ -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') {
|
||||
|
Reference in New Issue
Block a user