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