mirror of https://github.com/aredn/aredn.git
Fix scaled LQ/NLQ values for neighbors (#1420)
This commit is contained in:
parent
93f20037f7
commit
5dde2a97ce
|
@ -138,8 +138,8 @@
|
|||
const status = calcColor(tracker);
|
||||
print(`<div class="ctrl cols status ${status}" hx-get="status/e/neighbor-device?m=${tracker.mac}">`);
|
||||
const link = links[tracker.ip] || {};
|
||||
const lq = link.lossMultiplier ? (int(100 * link.linkQuality * 65536 / link.lossMultiplier) + "%"): "-";
|
||||
const nlq = link.lossMultiplier ? (int(100 * link.neighborLinkQuality * 65536 / link.lossMultiplier) + "%") : "-";
|
||||
const lq = link.lossMultiplier ? (min(100, int(100 * link.linkQuality * 65536 / link.lossMultiplier)) + "%") : "-";
|
||||
const nlq = link.lossMultiplier ? (min(100, int(100 * link.neighborLinkQuality * 65536 / link.lossMultiplier)) + "%") : "-";
|
||||
let icon = "";
|
||||
let title = "";
|
||||
switch (tracker.type) {
|
||||
|
|
Loading…
Reference in New Issue