mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
newdevice: Added further sensor support for Geist Watchdog (#7143)
* newdevice: Added further sensor support for Geist Watchdog * relaxed if check
This commit is contained in:
@@ -1675,6 +1675,19 @@ function fahrenheit_to_celsius($scale, $value)
|
||||
}
|
||||
return sprintf('%.02f', $value);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Simply passes the fahrenheit value to fahrenheit_to_celsius()
|
||||
*
|
||||
* @param $value
|
||||
* @return float
|
||||
*/
|
||||
function conv_fahrenheit($value)
|
||||
{
|
||||
return fahrenheit_to_celsius('fahrenheit', $value);
|
||||
}
|
||||
|
||||
function uw_to_dbm($value)
|
||||
{
|
||||
return 10 * log10($value / 1000);
|
||||
|
Reference in New Issue
Block a user