mirror of https://github.com/aredn/aredn.git
Fix fat-fingered display of lqm status on mesh page (#1215)
This commit is contained in:
parent
ed422f3550
commit
108d0da939
|
@ -761,7 +761,8 @@ do
|
||||||
else
|
else
|
||||||
lqmstatus = "idle"
|
lqmstatus = "idle"
|
||||||
end
|
end
|
||||||
if (track.leaf == "minor" and track.rev_leaf == "major") or (track.leaf == "major" and track.rev_leaf == "minor") then
|
if (track.blocks.signal or track.blocks.distance or track.blocks.quality) and
|
||||||
|
((track.leaf == "minor" and track.rev_leaf == "major") or (track.leaf == "major" and track.rev_leaf == "minor")) then
|
||||||
lqmstatus = ac(lqmstatus, "leaf")
|
lqmstatus = ac(lqmstatus, "leaf")
|
||||||
end
|
end
|
||||||
if track.snr then
|
if track.snr then
|
||||||
|
@ -790,7 +791,7 @@ do
|
||||||
end
|
end
|
||||||
|
|
||||||
if nodeiface or waniface or lqmstatus then
|
if nodeiface or waniface or lqmstatus then
|
||||||
c1 = c1 .. " <small>(" .. ac(ac(nodeiface, waniface), x) .. ")</small>"
|
c1 = c1 .. " <small>(" .. ac(ac(nodeiface, waniface), lqmstatus) .. ")</small>"
|
||||||
end
|
end
|
||||||
|
|
||||||
-- print node services if any
|
-- print node services if any
|
||||||
|
|
Loading…
Reference in New Issue