From 4aee3645d6316e4e178c8b9bf89c9cec2603ca9c Mon Sep 17 00:00:00 2001 From: Mcat12 Date: Fri, 12 Jan 2018 18:17:15 -0500 Subject: [PATCH] Fix limit on top-domains, top-ads, and top-clients Signed-off-by: Mcat12 --- request.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/request.c b/request.c index d61d9bc5..923199f5 100644 --- a/request.c +++ b/request.c @@ -419,7 +419,7 @@ void getTopDomains(char *client_message, int *sock) } // Only count entries that are actually sent and return when we have send enough data - if(n > count) + if(n == count) break; } if(excludedomains != NULL) @@ -502,7 +502,7 @@ void getTopClients(char *client_message, int *sock) } // Only count entries that are actually sent and return when we have send enough data - if(n > count) + if(n == count) break; } if(excludeclients != NULL)