Fix limit on top-domains, top-ads, and top-clients

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
This commit is contained in:
Mcat12
2018-01-12 18:17:15 -05:00
parent cdf71ec517
commit 4aee3645d6
+2 -2
View File
@@ -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)