Change Units on Noise Floor (#11790)

* Change Units on Noise Floor

I may be wrong, but I think this should just be dBm (i.e. integrated over the carrier bandwidth). The numbers look much too high to me to be on a per Hz basis.

If I am correct here, this should also be updated in the web interface.

Thanks!

* Update php, correct units for Wireless noise-floor

* Wireless Frequency, don't format_si, to avoid kMHz units

* Update Wireless noise-floor units, in RRD plots
This commit is contained in:
arrmo
2020-06-10 03:41:36 -05:00
committed by GitHub
parent 8fb8fd95e7
commit ba1302805f
9 changed files with 11 additions and 8 deletions

View File

@@ -1551,6 +1551,9 @@ function get_sensor_label_color($sensor, $type = 'sensors')
$sensor['sensor_current'] = formatUptime($sensor['sensor_current'] * 60, 'short');
return "<span class='label $label_style'>".trim($sensor['sensor_current'])."</span>";
}
if ($sensor['sensor_class'] == 'frequency' && $sensor['sensor_type'] == 'openwrt') {
return "<span class='label $label_style'>".trim($sensor['sensor_current'])." ".$unit."</span>";
}
return "<span class='label $label_style'>".trim(format_si($sensor['sensor_current']).$unit)."</span>";
}