feat: cache stats now prints total row

This commit is contained in:
2026-04-04 09:47:36 +02:00
parent 3e35bca73c
commit 048ae98fb6
3 changed files with 10 additions and 2 deletions
+8
View File
@@ -389,6 +389,14 @@ def stats():
f"{src:<{src_w}} "
+ " ".join(f"{c:>{w}}" for c, w in zip(counts, col_w))
)
totals = [
str(sum(table[src].get(st, 0) for src in sources)) for st in all_statuses
]
print("-" * src_w + " " + " ".join("-" * w for w in col_w))
print(
f"{'total':<{src_w}} "
+ " ".join(f"{c:>{w}}" for c, w in zip(totals, col_w))
)
# Confidence distribution (positive entries only)
buckets = s.get("confidence_buckets", {})