mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Update code in includes to be PSR-2 compliant (#4220)
refactor: Update code in /includes to be psr2 compliant #4220
This commit is contained in:
committed by
Neil Lathwood
parent
3c0fcdd46b
commit
9284bc60ff
@@ -24,8 +24,7 @@ if (is_array($eql_storage)) {
|
||||
$used = $storage['eqliscsiVolumeStatusAllocatedSpace'] * $units;
|
||||
if (is_int($index)) {
|
||||
discover_storage($valid_storage, $device, $index, $fstype, 'eql-storage', $descr, $size, $units, $used);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
// Trying to search the last '.' and take something after it as index
|
||||
$arrindex = explode(".", $index);
|
||||
$newindex = (int)(end($arrindex))+0;
|
||||
|
@@ -15,20 +15,18 @@ if (is_array($hrstorage_array)) {
|
||||
|
||||
switch ($fstype) {
|
||||
case 'hrStorageVirtualMemory':
|
||||
case 'hrStorageRam';
|
||||
case 'hrStorageOther';
|
||||
case 'nwhrStorageDOSMemory';
|
||||
case 'nwhrStorageMemoryAlloc';
|
||||
case 'nwhrStorageMemoryPermanent';
|
||||
case 'nwhrStorageMemoryAlloc';
|
||||
case 'nwhrStorageCacheBuffers';
|
||||
case 'nwhrStorageCacheMovable';
|
||||
case 'nwhrStorageCacheNonMovable';
|
||||
case 'nwhrStorageCodeAndDataMemory';
|
||||
case 'nwhrStorageDOSMemory';
|
||||
case 'nwhrStorageIOEngineMemory';
|
||||
case 'nwhrStorageMSEngineMemory';
|
||||
case 'nwhrStorageUnclaimedMemory';
|
||||
case 'hrStorageRam':
|
||||
case 'hrStorageOther':
|
||||
case 'nwhrStorageDOSMemory':
|
||||
case 'nwhrStorageMemoryAlloc':
|
||||
case 'nwhrStorageMemoryPermanent':
|
||||
case 'nwhrStorageCacheBuffers':
|
||||
case 'nwhrStorageCacheMovable':
|
||||
case 'nwhrStorageCacheNonMovable':
|
||||
case 'nwhrStorageCodeAndDataMemory':
|
||||
case 'nwhrStorageIOEngineMemory':
|
||||
case 'nwhrStorageMSEngineMemory':
|
||||
case 'nwhrStorageUnclaimedMemory':
|
||||
$deny = 1;
|
||||
break;
|
||||
}
|
||||
|
@@ -11,8 +11,7 @@ if (is_array($netapp_storage)) {
|
||||
if (isset($storage['df64TotalKBytes']) && is_numeric($storage['df64TotalKBytes'])) {
|
||||
$size = ($storage['df64TotalKBytes'] * $units);
|
||||
$used = ($storage['df64UsedKBytes'] * $units);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$size = ($storage['dfKBytesTotal'] * $units);
|
||||
$used = ($storage['dfKBytesUsed'] * $units);
|
||||
}
|
||||
|
Reference in New Issue
Block a user