mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
VRP: Discovery improvement for optical power + Mib upgrade (#9225)
* Huawei Mib file update * VRP: Improve sensor discovery for optical equipment * VRP: Improve sensor discovery for optical equipment * VRP: Adding Test data after sensor dbm update
This commit is contained in:
@@ -1672,10 +1672,16 @@ function fahrenheit_to_celsius($value, $scale = 'fahrenheit')
|
||||
return sprintf('%.02f', $value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Converts uW to dBm
|
||||
* $value must be positive
|
||||
*
|
||||
*/
|
||||
function uw_to_dbm($value)
|
||||
{
|
||||
return 10 * log10($value / 1000);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $value
|
||||
* @param null $default
|
||||
|
Reference in New Issue
Block a user