Remove all unneeded if($debug)-statements and replace them with d_echo

This commit is contained in:
Mark Schouten
2015-08-20 15:02:40 +02:00
parent e0edeab13f
commit 55a2e0423d
24 changed files with 47 additions and 142 deletions

View File

@@ -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]];

View File

@@ -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]];