Skip to content

Commit

Permalink
Revert "autocore: unify wifi signal view"
Browse files Browse the repository at this point in the history
This reverts commit 30783ee.
  • Loading branch information
coolsnowwolf committed Nov 17, 2023
1 parent b2baa9e commit 8578eed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package/lean/autocore/files/arm/index.htm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -529,7 +529,7 @@
'<strong><%:Channel%>:</strong> %d (%.3f <%:GHz%>)<br />' +
'<strong><%:Bitrate%>:</strong> %s <%:Mbit/s%><br />',
icon, net.signal, net.noise,
(net.quality == 0) ? 100 : net.quality,
net.quality,
net.link, net.ssid || '?',
net.mode,
net.channel, net.frequency,
Expand Down
4 changes: 2 additions & 2 deletions package/lean/autocore/files/x86/index.htm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -538,7 +538,7 @@
'<strong><%:Channel%>:</strong> %d (%.3f <%:GHz%>)<br />' +
'<strong><%:Bitrate%>:</strong> %s <%:Mbit/s%><br />',
icon, net.signal, net.noise,
(net.quality == 0) ? 100 : net.quality,
net.quality,
net.link, net.ssid || '?',
net.mode,
net.channel, net.frequency,
Expand Down

0 comments on commit 8578eed

Please sign in to comment.