luci-mod-admin-full: report SNR unit as dB, not dBm
Fixes: #1880 Reported-by: "zjw" Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
1b01656451
commit
6ff7f34ee8
1 changed files with 1 additions and 1 deletions
|
@ -276,7 +276,7 @@
|
|||
function wireless_label(dbm, noise)
|
||||
{
|
||||
if (noise)
|
||||
return String.format("%d <%:dBm%> (SNR %d <%:dBm%>)", noise_floor + dbm - 255, dbm - noise);
|
||||
return String.format("%d <%:dBm%> (SNR %d <%:dB%>)", noise_floor + dbm - 255, dbm - noise);
|
||||
else
|
||||
return String.format("%d <%:dBm%>", noise_floor + dbm - 255);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue