mirror of
https://github.com/craigerl/aprsd.git
synced 2025-03-10 22:38:33 -04:00
small refactor of stats usage in version plugin
This commit is contained in:
parent
9c77ca26be
commit
90f212e6dc
@ -23,9 +23,7 @@ class VersionPlugin(plugin.APRSDRegexCommandPluginBase):
|
||||
# fromcall = packet.get("from")
|
||||
# message = packet.get("message_text", None)
|
||||
# ack = packet.get("msgNo", "0")
|
||||
stats_obj = stats.APRSDStats()
|
||||
s = stats_obj.stats()
|
||||
print(s)
|
||||
s = stats.APRSDStats().stats()
|
||||
return "APRSD ver:{} uptime:{}".format(
|
||||
aprsd.__version__,
|
||||
s["aprsd"]["uptime"],
|
||||
|
Loading…
Reference in New Issue
Block a user