From 563b06876c02eb9193b0c7559765e47d932a5978 Mon Sep 17 00:00:00 2001 From: Hemna Date: Tue, 5 Nov 2024 20:15:52 -0500 Subject: [PATCH] fixed name for dump-stats output Also added a console.stats during loading of the stats --- aprsd/cmds/fetch_stats.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/aprsd/cmds/fetch_stats.py b/aprsd/cmds/fetch_stats.py index f43386a..e037371 100644 --- a/aprsd/cmds/fetch_stats.py +++ b/aprsd/cmds/fetch_stats.py @@ -164,9 +164,10 @@ def fetch_stats(ctx, host, port): def dump_stats(ctx): """Dump the current stats from the running APRSD instance.""" console = Console() - console.print(f"APRSD Fetch-Stats started version: {aprsd.__version__}") + console.print(f"APRSD Dump-Stats started version: {aprsd.__version__}") - ss = StatsStore() - ss.load() - stats = ss.data - console.print(stats) + with console.status("Dumping stats"): + ss = StatsStore() + ss.load() + stats = ss.data + console.print(stats)