mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
Fix coding style part 2
This commit is contained in:
@@ -1,14 +1,11 @@
|
||||
<?php
|
||||
|
||||
if ($device['os'] == "powerconnect")
|
||||
{
|
||||
echo("Powerconnect: ");
|
||||
if ($device['os'] == 'powerconnect') {
|
||||
echo 'Powerconnect: ';
|
||||
|
||||
$free = snmp_get($device, "dellLanExtension.6132.1.1.1.1.4.1.0", "-OvQ", "Dell-Vendor-MIB");
|
||||
$free = snmp_get($device, 'dellLanExtension.6132.1.1.1.1.4.1.0', '-OvQ', 'Dell-Vendor-MIB');
|
||||
|
||||
if (is_numeric($free))
|
||||
{
|
||||
discover_mempool($valid_mempool, $device, 0, "powerconnect-cpu", "CPU Memory", "1", NULL, NULL);
|
||||
}
|
||||
if (is_numeric($free)) {
|
||||
discover_mempool($valid_mempool, $device, 0, 'powerconnect-cpu', 'CPU Memory', '1', null, null);
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user