From c7dba339191653dfa15e2dc76fb5b1dcaa339f5b Mon Sep 17 00:00:00 2001 From: Dennis Schafroth Date: Thu, 12 Apr 2012 22:49:25 +0200 Subject: [PATCH] approximation on bytarget response if version 2 and above --- src/http_command.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/http_command.c b/src/http_command.c index 5f40d29..d4b4a77 100644 --- a/src/http_command.c +++ b/src/http_command.c @@ -726,8 +726,10 @@ static void bytarget_response(struct http_channel *c, struct http_session *s, co } wrbuf_printf(c->wrbuf, "%d\n", ht[i].records - ht[i].filtered); - if (version >= 2) + if (version >= 2) { wrbuf_printf(c->wrbuf, "%d\n", ht[i].filtered); + wrbuf_printf(c->wrbuf, "" ODR_INT_PRINTF "\n", ht[i].approximation); + } wrbuf_puts(c->wrbuf, ""); wrbuf_xmlputs(c->wrbuf, ht[i].state); wrbuf_puts(c->wrbuf, "\n"); -- 1.7.10.4