mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 08:02:41 +02:00
Fix coding style part 2
This commit is contained in:
@@ -1,34 +1,33 @@
|
||||
<?php
|
||||
|
||||
echo("Memory : ");
|
||||
echo 'Memory : ';
|
||||
|
||||
// Include all discovery modules
|
||||
|
||||
$include_dir = "includes/discovery/mempools";
|
||||
include("includes/include-dir.inc.php");
|
||||
$include_dir = 'includes/discovery/mempools';
|
||||
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); }
|
||||
if ($debug) {
|
||||
print_r($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"); }
|
||||
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";
|
||||
}
|
||||
|
||||
if (!$valid_mempool[$mempool_type][$mempool_index])
|
||||
{
|
||||
echo("-");
|
||||
dbDelete('mempools', '`mempool_id` = ?', array($test_mempool['mempool_id']));
|
||||
}
|
||||
if (!$valid_mempool[$mempool_type][$mempool_index]) {
|
||||
echo '-';
|
||||
dbDelete('mempools', '`mempool_id` = ?', array($test_mempool['mempool_id']));
|
||||
}
|
||||
|
||||
unset($mempool_oid); unset($mempool_type);
|
||||
unset($mempool_oid);
|
||||
unset($mempool_type);
|
||||
}
|
||||
|
||||
unset($valid_mempool);
|
||||
echo("\n");
|
||||
|
||||
?>
|
||||
echo "\n";
|
||||
|
||||
Reference in New Issue
Block a user