From 522e52618e9851c4a6f2b58bdb4655fab69cc53e Mon Sep 17 00:00:00 2001 From: Zygo Blaxell Date: Tue, 22 Jun 2021 15:39:46 -0400 Subject: [PATCH] context: calculate TOTAL RATES correctly The denominator for TOTAL RATES is the total running time, not the delta running time. Signed-off-by: Zygo Blaxell --- src/bees-context.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/bees-context.cc b/src/bees-context.cc index 45c1d08..ff08863 100644 --- a/src/bees-context.cc +++ b/src/bees-context.cc @@ -132,12 +132,11 @@ BeesContext::show_progress() auto all_age = all_timer.age(); stats_timer.lap(); - auto avg_rates = thisStats / stats_age; - BEESNOTE("logging event counter totals for last " << all_timer); BEESLOGINFO("TOTAL COUNTS (" << all_age << "s):\n\t" << thisStats); BEESNOTE("logging event counter rates for last " << all_timer); + auto avg_rates = thisStats / all_age; BEESLOGINFO("TOTAL RATES (" << all_age << "s):\n\t" << avg_rates); BEESNOTE("logging event counter delta counts for last " << stats_age);