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
+1 -3
View File
@@ -7,9 +7,7 @@ $pool_cmd = $config['snmpget'].' -M '.$config['mibdir'].' -m CISCO-ENHANCED-MEM
$pool_cmd .= " cempMemPoolUsed.$oid cempMemPoolFree.$oid cempMemPoolLargestFree.$oid";
$pool_cmd .= " | cut -f 1 -d ' '";
if ($debug) {
echo "SNMP [ $pool_cmd ]\n";
}
d_echo("SNMP [ $pool_cmd ]\n");
$pool = shell_exec($pool_cmd);