From: Dennis Schafroth Date: Thu, 12 Apr 2012 20:50:26 +0000 (+0200) Subject: Init approximation sum X-Git-Tag: v1.6.13~51 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=eca44e3cf91bcb32e816f99736f81286312f51d7;p=pazpar2-moved-to-github.git Init approximation sum --- 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);