mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Remove all unneeded if($debug)-statements and replace them with d_echo
This commit is contained in:
@@ -3,9 +3,7 @@
|
||||
// HOST-RESOURCES-MIB - Storage Objects
|
||||
if (!is_array($storage_cache['hrstorage'])) {
|
||||
$storage_cache['hrstorage'] = snmpwalk_cache_oid($device, 'hrStorageEntry', null, 'HOST-RESOURCES-MIB:HOST-RESOURCES-TYPES');
|
||||
if ($debug) {
|
||||
print_r($storage_cache);
|
||||
}
|
||||
d_echo($storage_cache);
|
||||
}
|
||||
|
||||
$entry = $storage_cache['hrstorage'][$storage[storage_index]];
|
||||
|
@@ -2,9 +2,7 @@
|
||||
|
||||
if (!is_array($storage_cache['netapp-storage'])) {
|
||||
$storage_cache['netapp-storage'] = snmpwalk_cache_oid($device, 'dfEntry', null, 'NETAPP-MIB');
|
||||
if ($debug) {
|
||||
print_r($storage_cache);
|
||||
}
|
||||
d_echo($storage_cache);
|
||||
}
|
||||
|
||||
$entry = $storage_cache['netapp-storage'][$storage[storage_index]];
|
||||
|
Reference in New Issue
Block a user