This commit is contained in:
Mark Qvist 2025-12-31 17:24:08 +01:00
parent e0ca14eb21
commit b42e1c93da
2 changed files with 5 additions and 5 deletions

View file

@ -251,8 +251,8 @@ class InterfaceAnnounceHandler:
class InterfaceDiscovery():
THRESHOLD_UNKNOWN = 24*60*60
THRESHOLD_STALE = 7*24*60*60
THRESHOLD_REMOVE = 30*24*60*60
THRESHOLD_STALE = 3*24*60*60
THRESHOLD_REMOVE = 7*24*60*60
STATUS_STALE = 0
STATUS_UNKNOWN = 100

View file

@ -195,9 +195,9 @@ def program_setup(configdir, dispall=False, verbosity=0, name_filter=None, json=
if_type = i["type"]
status = i["status"]
if status == "available": status_display = "Available"
elif status == "unknown": status_display = "? Unknown"
elif status == "stale": status_display = "× Stale"
if status == "available": status_display = "Available"
elif status == "unknown": status_display = "Unknown"
elif status == "stale": status_display = "Stale"
else: status_display = status
now = time.time()