mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Junos dwdm interface sensor support (#7714)
* Junos dwdm interface sensor support … four new sensors Chromatic Dispersion ps/nm Delay s (seconds) Q_factor (dB) preFEC_BER (ratio) reuse of SNR, dbm, temperature, current * new dwdm sensors more generic, ber and quality_factor * new sensors updated * renamed html graphs new sensors * fixed ber polling * Change to base SI Hz and s. * update sensor divisors to bigint * rename sql-schema/216.sql to 218.sql * YAML junos dwmd sensor definitions, except BER * bigint divisor fixed * deafult 1 divisior * small fixes including schema change for another PR * schema fix
This commit is contained in:
@@ -572,7 +572,7 @@ function format_si($value, $round = '2', $sf = '3')
|
||||
$ext = $sizes[$i];
|
||||
}
|
||||
} else {
|
||||
$sizes = array('', 'm', 'u', 'n');
|
||||
$sizes = array('', 'm', 'u', 'n', 'p');
|
||||
$ext = $sizes[0];
|
||||
for ($i = 1; (($i < count($sizes)) && ($value != 0) && ($value <= 0.1)); $i++) {
|
||||
$value = $value * 1000;
|
||||
|
Reference in New Issue
Block a user