mirror of
https://github.com/markqvist/Reticulum.git
synced 2026-01-06 02:55:38 -05:00
Cleanup
This commit is contained in:
parent
e0ca14eb21
commit
b42e1c93da
2 changed files with 5 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue