mirror of
https://github.com/craigerl/aprsd.git
synced 2024-11-21 07:41:49 -05:00
fixed name for dump-stats output
Also added a console.stats during loading of the stats
This commit is contained in:
parent
579d0c95a0
commit
563b06876c
@ -164,9 +164,10 @@ def fetch_stats(ctx, host, port):
|
|||||||
def dump_stats(ctx):
|
def dump_stats(ctx):
|
||||||
"""Dump the current stats from the running APRSD instance."""
|
"""Dump the current stats from the running APRSD instance."""
|
||||||
console = Console()
|
console = Console()
|
||||||
console.print(f"APRSD Fetch-Stats started version: {aprsd.__version__}")
|
console.print(f"APRSD Dump-Stats started version: {aprsd.__version__}")
|
||||||
|
|
||||||
ss = StatsStore()
|
with console.status("Dumping stats"):
|
||||||
ss.load()
|
ss = StatsStore()
|
||||||
stats = ss.data
|
ss.load()
|
||||||
console.print(stats)
|
stats = ss.data
|
||||||
|
console.print(stats)
|
||||||
|
Loading…
Reference in New Issue
Block a user