Apply fixes from StyleCI (#12120)

This commit is contained in:
Jellyfrog
2020-09-21 15:40:17 +02:00
committed by GitHub
parent 77c531527c
commit 82f43cb98d
1733 changed files with 18337 additions and 18540 deletions

View File

@@ -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);
}
}