Skip to content

Commit

Permalink
Add number of unique clients to statistics
Browse files Browse the repository at this point in the history
  • Loading branch information
DL6ER committed Jun 19, 2017
1 parent 52e0845 commit cda0229
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions request.c
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,9 @@ void getStats(int *sock)
sprintf(server_message,"unique_domains %i\nqueries_forwarded %i\nqueries_cached %i\n", \
counters.domains,counters.forwardedqueries,counters.cached);
swrite(server_message, *sock);
sprintf(server_message,"unique_clients %i\n", \
counters.clients);
swrite(server_message, *sock);
if(debugclients)
logg("Sent stats data to client, ID: %i", *sock);
}
Expand Down

0 comments on commit cda0229

Please sign in to comment.