git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
1b01656
)
luci-mod-admin-full: report SNR unit as dB, not dBm
author
zjw
<redacted>
Wed, 13 Jun 2018 14:30:25 +0000
(10:30 -0400)
committer
Jo-Philipp Wich
<redacted>
Mon, 25 Jun 2018 09:39:24 +0000
(11:39 +0200)
Fixes: #1880
Reported-by: "zjw"
Signed-off-by: Jo-Philipp Wich <redacted>
modules/luci-mod-admin-full/luasrc/view/admin_status/wireless.htm
patch
|
blob
|
history
diff --git
a/modules/luci-mod-admin-full/luasrc/view/admin_status/wireless.htm
b/modules/luci-mod-admin-full/luasrc/view/admin_status/wireless.htm
index 09b7965776ae1e36d1af02b93af7c4b1310533ab..1806f4a6c8ad6d7cf42c446fb69162d8036a581c 100644
(file)
--- a/
modules/luci-mod-admin-full/luasrc/view/admin_status/wireless.htm
+++ b/
modules/luci-mod-admin-full/luasrc/view/admin_status/wireless.htm
@@
-276,7
+276,7
@@
function wireless_label(dbm, noise)
{
if (noise)
- return String.format("%d <%:dBm%> (SNR %d <%:dB
m
%>)", 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);
}
git clone https://git.99rst.org/PROJECT