mirror of
https://github.com/markqvist/Reticulum.git
synced 2026-05-21 07:14:48 -07:00
Cleanup
This commit is contained in:
@@ -251,8 +251,8 @@ class InterfaceAnnounceHandler:
|
|||||||
|
|
||||||
class InterfaceDiscovery():
|
class InterfaceDiscovery():
|
||||||
THRESHOLD_UNKNOWN = 24*60*60
|
THRESHOLD_UNKNOWN = 24*60*60
|
||||||
THRESHOLD_STALE = 7*24*60*60
|
THRESHOLD_STALE = 3*24*60*60
|
||||||
THRESHOLD_REMOVE = 30*24*60*60
|
THRESHOLD_REMOVE = 7*24*60*60
|
||||||
|
|
||||||
STATUS_STALE = 0
|
STATUS_STALE = 0
|
||||||
STATUS_UNKNOWN = 100
|
STATUS_UNKNOWN = 100
|
||||||
|
|||||||
@@ -195,9 +195,9 @@ def program_setup(configdir, dispall=False, verbosity=0, name_filter=None, json=
|
|||||||
if_type = i["type"]
|
if_type = i["type"]
|
||||||
status = i["status"]
|
status = i["status"]
|
||||||
|
|
||||||
if status == "available": status_display = "✓ Available"
|
if status == "available": status_display = "Available"
|
||||||
elif status == "unknown": status_display = "? Unknown"
|
elif status == "unknown": status_display = "Unknown"
|
||||||
elif status == "stale": status_display = "× Stale"
|
elif status == "stale": status_display = "Stale"
|
||||||
else: status_display = status
|
else: status_display = status
|
||||||
|
|
||||||
now = time.time()
|
now = time.time()
|
||||||
|
|||||||
Reference in New Issue
Block a user