small refactor of stats usage in version plugin

This commit is contained in:
Hemna 2024-03-20 09:29:09 -04:00
parent 9c77ca26be
commit 90f212e6dc
1 changed files with 1 additions and 3 deletions

View File

@ -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"],