Use correct format specifier when printing totals

Fixes #26.
This commit is contained in:
Christopher Wellons 2019-04-20 08:40:11 -04:00
parent 24bc7639d1
commit 370cb5bdb7

View File

@ -147,7 +147,7 @@ statistics_log_totals(struct client *clients)
long long milliseconds = statistics.milliseconds;
for (long long now = epochms(); clients; clients = clients->next)
milliseconds += now - clients->connect_time;
logmsg(LOG_INFO, "TOTALS connects=%lld seconds=%lld.%lld bytes=%lld",
logmsg(LOG_INFO, "TOTALS connects=%lld seconds=%lld.%03lld bytes=%lld",
statistics.connects,
milliseconds / 1000,
milliseconds % 1000,