Fix dbm calculation to return -60 instead of 0 (#14858)

* Fix calculation

* Update iosxr_asr9001.json

* Update iosxr_asr9001.json

* Update iosxr_asr9001.json

* Update iosxr_asr9001.json

* Update iosxr_asr9001.json

* Update iosxr_asr9010.json

* Update iosxr_asr9001.json

* Update iosxr_asr9001.json

* Update iosxr_asr9001.json

* Update iosxr_asr9001.json

* rebuild using SNMPRec

* Update iosxr_asr9001.json

* Update iosxr_asr9001.json

* Update iosxr_asr9010.json

* Update iosxr_asr9901.json

* Update iosxr_asr9001.json

* Update iosxr_asr9010.json

* Update iosxr_asr9901.json

* Update iosxr_asr9010.json

* Update iosxr_asr9001.json

* Update iosxr_asr9010.json

* Update iosxr_asr9901.json

* Update iosxr_asr9001.json

* Update iosxr_asr9001.json

* Update iosxr_asr9001.json

* Update iosxr_asr9001.json

* Update iosxr_asr9001.json

* Update iosxr_asr9001.json

* Update iosxr_asr9010.json

* Update iosxr_asr9901.json
This commit is contained in:
electrocret
2023-03-15 08:07:46 -05:00
committed by GitHub
parent ca8b780494
commit 1173cf3161
4 changed files with 43184 additions and 43184 deletions
+2 -2
View File
@@ -820,7 +820,7 @@ function string_to_float($value)
*/
function uw_to_dbm($value)
{
return $value == 0 ? $value : 10 * log10($value / 1000);
return $value == 0 ? -60 : 10 * log10($value / 1000);
}
/**
@@ -829,7 +829,7 @@ function uw_to_dbm($value)
*/
function mw_to_dbm($value)
{
return $value == 0 ? $value : 10 * log10($value);
return $value == 0 ? -60 : 10 * log10($value);
}
/**
+2 -2
View File
@@ -18806,7 +18806,7 @@
"group": null,
"sensor_divisor": 10000000,
"sensor_multiplier": 1000,
"sensor_current": 0,
"sensor_current": -60,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
@@ -18881,7 +18881,7 @@
"group": null,
"sensor_divisor": 10000000,
"sensor_multiplier": 1000,
"sensor_current": 0,
"sensor_current": -60,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
+43178 -43178
View File
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -16206,7 +16206,7 @@
"group": null,
"sensor_divisor": 100000000,
"sensor_multiplier": 1000,
"sensor_current": 0,
"sensor_current": -60,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
@@ -16231,7 +16231,7 @@
"group": null,
"sensor_divisor": 100000000,
"sensor_multiplier": 1000,
"sensor_current": 0,
"sensor_current": -60,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,