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

This commit is contained in:
Mark Schouten
2015-08-21 16:10:00 +02:00
parent e0edeab13f
commit 55a2e0423d
24 changed files with 47 additions and 142 deletions
+2 -6
View File
@@ -9,14 +9,10 @@
// NETSWITCH-MIB::hpLocalMemAllocBytes.1 = INTEGER: 1668728
if (!is_array($mempool_cache['hpLocal'])) {
$mempool_cache['hpLocal'] = snmpwalk_cache_oid($device, 'hpLocal', null, 'NETSWITCH-MIB', $config['mibdir'].':'.$config['mibdir'].'/hp');
if ($debug) {
print_r($mempool_cache);
}
d_echo($mempool_cache);
}
else {
if ($debug) {
echo 'Cached!';
}
d_echo('Cached!');
}
$entry = $mempool_cache['hpLocal'][$mempool[mempool_index]];