summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2007-03-01 20:07:02 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2007-03-01 20:07:02 +0000
commit3530283dae78315a47a8bd9cb72f74a9cce6b129 (patch)
tree29972def35b45e2d5c25a07329ec92bbbca3556a /src
parent44089027d5318214d80efe1696ed4b36dd96905d (diff)
Fix miscalculation of stats collector's write delay, introduced in revision 1.117.
Diffstat (limited to 'src')
-rw-r--r--src/backend/postmaster/pgstat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/postmaster/pgstat.c b/src/backend/postmaster/pgstat.c
index 5b94ba1dc64..4e6ef909ba4 100644
--- a/src/backend/postmaster/pgstat.c
+++ b/src/backend/postmaster/pgstat.c
@@ -13,7 +13,7 @@
*
* Copyright (c) 2001-2006, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.140.2.2 2007/01/26 20:07:01 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.140.2.3 2007/03/01 20:07:02 tgl Exp $
* ----------
*/
#include "postgres.h"
@@ -1689,7 +1689,7 @@ PgstatCollectorMain(int argc, char *argv[])
/* Preset the delay between status file writes */
MemSet(&write_timeout, 0, sizeof(struct itimerval));
write_timeout.it_value.tv_sec = PGSTAT_STAT_INTERVAL / 1000;
- write_timeout.it_value.tv_usec = PGSTAT_STAT_INTERVAL % 1000;
+ write_timeout.it_value.tv_usec = (PGSTAT_STAT_INTERVAL % 1000) * 1000;
/*
* Read in an existing statistics stats file or initialize the stats to