]> granicus.if.org Git - pgbouncer/commitdiff
Put units on log message
authorPeter Eisentraut <peter@eisentraut.org>
Fri, 23 Nov 2018 07:29:38 +0000 (08:29 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Fri, 23 Nov 2018 07:32:03 +0000 (08:32 +0100)
age=N -> age=Ns

src/objects.c

index 12272fcfe3f420ca6a3ebd6da360f24866724eea..0c589b6f521c1b1553b04ee89a32935ef0c3bcc6 100644 (file)
@@ -811,7 +811,7 @@ void disconnect_server(PgSocket *server, bool notify, const char *reason, ...)
        reason = buf;
 
        if (cf_log_disconnections)
-               slog_info(server, "closing because: %s (age=%" PRIu64 ")", reason,
+               slog_info(server, "closing because: %s (age=%" PRIu64 "s)", reason,
                          (now - server->connect_time) / USEC);
 
        switch (server->state) {
@@ -887,7 +887,7 @@ void disconnect_client(PgSocket *client, bool notify, const char *reason, ...)
        reason = buf;
 
        if (cf_log_disconnections)
-               slog_info(client, "closing because: %s (age=%" PRIu64 ")", reason,
+               slog_info(client, "closing because: %s (age=%" PRIu64 "s)", reason,
                          (now - client->connect_time) / USEC);
 
        switch (client->state) {