1
0
mirror of https://github.com/craigerl/aprsd.git synced 2024-11-21 15:51:52 -05:00

fixed name for dump-stats output

Also added a console.stats during loading of the stats
This commit is contained in:
Hemna 2024-11-05 20:15:52 -05:00
parent 579d0c95a0
commit 563b06876c

View File

@ -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)