From 370cb5bdb7da15a4f50921d6a0fa22e6926729ad Mon Sep 17 00:00:00 2001 From: Christopher Wellons Date: Sat, 20 Apr 2019 08:40:11 -0400 Subject: [PATCH] Use correct format specifier when printing totals Fixes #26. --- endlessh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/endlessh.c b/endlessh.c index 1e52e62..470cbf2 100644 --- a/endlessh.c +++ b/endlessh.c @@ -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,