From 6ff7f34ee8401bff554939608b8a56e566a7eec2 Mon Sep 17 00:00:00 2001 From: zjw Date: Wed, 13 Jun 2018 10:30:25 -0400 Subject: luci-mod-admin-full: report SNR unit as dB, not dBm Fixes: #1880 Reported-by: "zjw" Signed-off-by: Jo-Philipp Wich --- modules/luci-mod-admin-full/luasrc/view/admin_status/wireless.htm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/luci-mod-admin-full/luasrc') 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 09b7965776..1806f4a6c8 100644 --- 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 <%: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); } -- cgit v1.2.3