Skip to content

Commit

Permalink
Use correct format specifier when printing totals
Browse files Browse the repository at this point in the history
Fixes #26.
  • Loading branch information
skeeto committed Apr 20, 2019
1 parent 24bc763 commit 370cb5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion endlessh.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 370cb5b

Please sign in to comment.