mirror of
https://github.com/FreifunkFranken/fff-monitoring.git
synced 2024-06-23 16:17:37 +02:00
router.html: Label historic neighbors in plot with "(old)"
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
parent
ec5de0bf4d
commit
d8e890c7b7
|
@ -260,7 +260,11 @@ def router_info(dbid):
|
||||||
if label == ni2["hostname"] and ni["mac"] != ni2["mac"]:
|
if label == ni2["hostname"] and ni["mac"] != ni2["mac"]:
|
||||||
# This shows the NEIGHBOR'S interface name
|
# This shows the NEIGHBOR'S interface name
|
||||||
label += "@" + ni["netif"]
|
label += "@" + ni["netif"]
|
||||||
neighlabel[ni["mac"]] = label
|
append = " (old)"
|
||||||
|
for nnn in router["neighbours"]:
|
||||||
|
if nnn["mac"] == ni["mac"]:
|
||||||
|
append = ""
|
||||||
|
neighlabel[ni["mac"]] = label + append
|
||||||
|
|
||||||
gwfetch = mysql.fetchall("""
|
gwfetch = mysql.fetchall("""
|
||||||
SELECT quality, mac, time FROM router_stats_gw WHERE router = %s
|
SELECT quality, mac, time FROM router_stats_gw WHERE router = %s
|
||||||
|
|
Loading…
Reference in New Issue
Block a user