diff options
Diffstat (limited to 'modules/luci-mod-status')
-rw-r--r-- | modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/60_wifi.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/60_wifi.js b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/60_wifi.js index e73f57712..86468c718 100644 --- a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/60_wifi.js +++ b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/60_wifi.js @@ -139,14 +139,14 @@ return L.Class.extend({ ipv6 = hosthints.getIP6AddrByMACAddr(bss.mac); var icon; - var q = (-1 * (bss.noise - bss.signal)) / 5; - if (q < 1) + var q = Math.min((bss.signal + 110) / 70 * 100, 100); + if (q == 0) icon = L.resource('icons/signal-0.png'); - else if (q < 2) + else if (q < 25) icon = L.resource('icons/signal-0-25.png'); - else if (q < 3) + else if (q < 50) icon = L.resource('icons/signal-25-50.png'); - else if (q < 4) + else if (q < 75) icon = L.resource('icons/signal-50-75.png'); else icon = L.resource('icons/signal-75-100.png'); |