aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2004-02-21 06:29:58 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2004-02-21 06:29:58 +0000
commita81b9d679f4e8e4b7ca65012996840044b8174ca (patch)
treedabe8505f01d257e04053ab2c447e1dc2878ada2 /src/backend/tcop/postgres.c
parent59f9a0b9df0d224bb62ff8ec5b65e0b187655742 (diff)
downloadpostgresql-a81b9d679f4e8e4b7ca65012996840044b8174ca.tar.gz
postgresql-a81b9d679f4e8e4b7ca65012996840044b8174ca.zip
Fix random build breakage from log_disconnections patch.
Diffstat (limited to 'src/backend/tcop/postgres.c')
-rw-r--r--src/backend/tcop/postgres.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c
index f56b3dc3874..abb682686dc 100644
--- a/src/backend/tcop/postgres.c
+++ b/src/backend/tcop/postgres.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.392 2004/02/17 04:09:26 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.393 2004/02/21 06:29:58 tgl Exp $
*
* NOTES
* this is the "main" module of the postgres backend and
@@ -3240,8 +3240,9 @@ log_disconnections(int code, Datum arg)
snprintf(session_time,sizeof(session_time),"negative!");
else
/* for stricter accuracy here we could round - this is close enough */
- snprintf(session_time, sizeof(session_time),"%d:%02d:%02d.%02ld",
- hours, minutes, seconds, end.tv_usec/10000);
+ snprintf(session_time, sizeof(session_time),
+ "%d:%02d:%02d.%02d",
+ hours, minutes, seconds, (int) (end.tv_usec/10000));
ereport(
LOG,