From 8578eed80e47457531d7faed1f6fb4895642d44a Mon Sep 17 00:00:00 2001 From: coolsnowwolf Date: Sat, 11 Nov 2023 23:28:07 +0800 Subject: [PATCH] Revert "autocore: unify wifi signal view" This reverts commit 30783ee2043d290d2811e09f9a1c8de5147a514a. --- package/lean/autocore/files/arm/index.htm | 4 ++-- package/lean/autocore/files/x86/index.htm | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package/lean/autocore/files/arm/index.htm b/package/lean/autocore/files/arm/index.htm index 6668df0f8f6241..0537b09035ad26 100644 --- a/package/lean/autocore/files/arm/index.htm +++ b/package/lean/autocore/files/arm/index.htm @@ -509,7 +509,7 @@ if (!is_assoc) icon = "<%=resource%>/icons/signal-none.png"; else if (net.quality == 0) - icon = "<%=resource%>/icons/signal-75-100.png"; + icon = "<%=resource%>/icons/signal-0.png"; else if (net.quality < 25) icon = "<%=resource%>/icons/signal-0-25.png"; else if (net.quality < 50) @@ -529,7 +529,7 @@ '<%:Channel%>: %d (%.3f <%:GHz%>)
' + '<%:Bitrate%>: %s <%:Mbit/s%>
', icon, net.signal, net.noise, - (net.quality == 0) ? 100 : net.quality, + net.quality, net.link, net.ssid || '?', net.mode, net.channel, net.frequency, diff --git a/package/lean/autocore/files/x86/index.htm b/package/lean/autocore/files/x86/index.htm index 590f27137f5711..84538c53daaf49 100644 --- a/package/lean/autocore/files/x86/index.htm +++ b/package/lean/autocore/files/x86/index.htm @@ -518,7 +518,7 @@ if (!is_assoc) icon = "<%=resource%>/icons/signal-none.png"; else if (net.quality == 0) - icon = "<%=resource%>/icons/signal-75-100.png"; + icon = "<%=resource%>/icons/signal-0.png"; else if (net.quality < 25) icon = "<%=resource%>/icons/signal-0-25.png"; else if (net.quality < 50) @@ -538,7 +538,7 @@ '<%:Channel%>: %d (%.3f <%:GHz%>)
' + '<%:Bitrate%>: %s <%:Mbit/s%>
', icon, net.signal, net.noise, - (net.quality == 0) ? 100 : net.quality, + net.quality, net.link, net.ssid || '?', net.mode, net.channel, net.frequency,