Tweak SIGUSR1 statistics totals logging

* Don't dynamically allocate the struct since that's not necessary.
* Use a more concise log message.
* Include current clients when counting the time.
* Print final statistics message *after* closing all clients.
* Don't include total connections in ACCEPT.
* Mention SIGUSR1 in the new man page, too.

Adjusts #24.
This commit is contained in:
Christopher Wellons
2019-04-12 18:46:53 -04:00
parent c50585f759
commit 6f621b90b1
3 changed files with 31 additions and 26 deletions

View File

@@ -45,7 +45,7 @@ write a complete, consistent log.
A SIGHUP signal requests a reload of the configuration file (`-f`).
A SIGUSR1 signal will print connections stats to standard output.
A SIGUSR1 signal will print connections stats to the log.
## Sample Configuration File