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 . discovery dir..
This commit is contained in:
@@ -9,16 +9,12 @@ require 'includes/include-dir.inc.php';
|
||||
// Remove memory pools which weren't redetected here
|
||||
$sql = "SELECT * FROM `mempools` WHERE `device_id` = '".$device['device_id']."'";
|
||||
|
||||
if ($debug) {
|
||||
print_r($valid_mempool);
|
||||
}
|
||||
d_echo($valid_mempool);
|
||||
|
||||
foreach (dbFetchRows($sql) as $test_mempool) {
|
||||
$mempool_index = $test_mempool['mempool_index'];
|
||||
$mempool_type = $test_mempool['mempool_type'];
|
||||
if ($debug) {
|
||||
echo $mempool_index.' -> '.$mempool_type."\n";
|
||||
}
|
||||
d_echo($mempool_index.' -> '.$mempool_type."\n");
|
||||
|
||||
if (!$valid_mempool[$mempool_type][$mempool_index]) {
|
||||
echo '-';
|
||||
|
||||
Reference in New Issue
Block a user