mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Apply fixes from StyleCI (#12120)
This commit is contained in:
@@ -22,13 +22,12 @@
|
||||
* @copyright 2017 Neil Lathwood
|
||||
* @author Neil Lathwood <neil@lathwood.co.uk>
|
||||
*/
|
||||
|
||||
foreach ($pre_cache['ciscoepc_docsIfDownstreamChannelTable'] as $index => $data) {
|
||||
if (is_numeric($data['docsIfDownChannelPower'])) {
|
||||
$descr = "Channel {$data['docsIfDownChannelId']}";
|
||||
$oid = '.1.3.6.1.2.1.10.127.1.1.1.1.6.' . $index;
|
||||
$descr = "Channel {$data['docsIfDownChannelId']}";
|
||||
$oid = '.1.3.6.1.2.1.10.127.1.1.1.1.6.' . $index;
|
||||
$divisor = 10;
|
||||
$value = $data['docsIfDownChannelPower'];
|
||||
discover_sensor($valid['sensor'], 'dbm', $device, $oid, 'docsIfDownChannelPower.'.$index, 'ciscoepc', $descr, $divisor, '1', null, null, null, null, $value);
|
||||
$value = $data['docsIfDownChannelPower'];
|
||||
discover_sensor($valid['sensor'], 'dbm', $device, $oid, 'docsIfDownChannelPower.' . $index, 'ciscoepc', $descr, $divisor, '1', null, null, null, null, $value);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user