mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Update code in includes to be PSR-2 compliant (#4220)
refactor: Update code in /includes to be psr2 compliant #4220
This commit is contained in:
committed by
Neil Lathwood
parent
3c0fcdd46b
commit
9284bc60ff
@@ -14,14 +14,14 @@
|
||||
if ($device['os_group'] == "cisco") {
|
||||
// Total
|
||||
$total = 0;
|
||||
foreach (snmpwalk_cache_oid_num ($device, "1.3.6.1.4.1.9.9.86.1.2.1.1.6", NULL) as $key => $value) {
|
||||
foreach (snmpwalk_cache_oid_num($device, "1.3.6.1.4.1.9.9.86.1.2.1.1.6", null) as $key => $value) {
|
||||
$total += $value[''];
|
||||
}
|
||||
|
||||
if (isset($total) && ($total != "") && ($total != 0)) {
|
||||
// Active
|
||||
$active = 0;
|
||||
foreach ( snmpwalk_cache_oid_num ($device, "1.3.6.1.4.1.9.9.86.1.2.1.1.7", NULL) as $key => $value) {
|
||||
foreach (snmpwalk_cache_oid_num($device, "1.3.6.1.4.1.9.9.86.1.2.1.1.7", null) as $key => $value) {
|
||||
$active += $value[''];
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@ if ($device['os_group'] == "cisco") {
|
||||
$tags = compact('rrd_def');
|
||||
data_update($device, 'cisco-iosdsp', $tags, $fields);
|
||||
|
||||
$graphs['cisco-iosdsp'] = TRUE;
|
||||
$graphs['cisco-iosdsp'] = true;
|
||||
echo (" Cisco IOS DSP ");
|
||||
}
|
||||
unset($rrd_def, $total, $active, $tags, $fields);
|
||||
|
||||
Reference in New Issue
Block a user