luci-mod-admin-full: report SNR unit as dB, not dBm
authorzjw <joe@madewell.net>
Wed, 13 Jun 2018 14:30:25 +0000 (10:30 -0400)
committerJo-Philipp Wich <jo@mein.io>
Mon, 25 Jun 2018 09:39:24 +0000 (11:39 +0200)
Fixes: #1880
Reported-by: "zjw"
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-mod-admin-full/luasrc/view/admin_status/wireless.htm

index 09b7965776ae1e36d1af02b93af7c4b1310533ab..1806f4a6c8ad6d7cf42c446fb69162d8036a581c 100644 (file)
                                                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);
                                                }