mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
@@ -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>";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user