1
0
mirror of https://github.com/Zygo/bees.git synced 2025-05-17 21:35:45 +02:00

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 <bees@furryterror.org>
This commit is contained in:
Zygo Blaxell 2021-06-22 15:39:46 -04:00
parent 4a3d3e7a43
commit 522e52618e

View File

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