From eca44e3cf91bcb32e816f99736f81286312f51d7 Mon Sep 17 00:00:00 2001 From: Dennis Schafroth Date: Thu, 12 Apr 2012 22:50:26 +0200 Subject: [PATCH] Init approximation sum --- src/session.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/session.c b/src/session.c index f0f672c..36be061 100644 --- a/src/session.c +++ b/src/session.c @@ -1203,7 +1203,8 @@ struct record_cluster **show_range_start(struct session *se, { *num = 0; *total = 0; - *sumhits = 0; + *sumhits = 0; + *approx_hits = 0; recs = 0; } else @@ -1222,6 +1223,7 @@ struct record_cluster **show_range_start(struct session *se, *total = reclist_get_num_records(se->reclist); *sumhits = 0; + *approx_hits = 0; for (l = se->clients_active; l; l = l->next) { *sumhits += client_get_hits(l->client); *approx_hits += client_get_approximation(l->client); -- 1.7.10.4