diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2007-03-01 20:06:56 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2007-03-01 20:06:56 +0000 |
commit | 44f72c6e9e4e8c3d9c64fc606202b2c90ec1ceda (patch) | |
tree | c7810a6c5cf46127ea9665e5d42f904ef568ba64 /src | |
parent | cba2d2717a30d4c5e4704e40cc687548a433b276 (diff) | |
download | postgresql-44f72c6e9e4e8c3d9c64fc606202b2c90ec1ceda.tar.gz postgresql-44f72c6e9e4e8c3d9c64fc606202b2c90ec1ceda.zip |
Fix miscalculation of stats collector's write delay, introduced in revision 1.117.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/postmaster/pgstat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/postmaster/pgstat.c b/src/backend/postmaster/pgstat.c index d6e8cd220a0..486dc6e48bf 100644 --- a/src/backend/postmaster/pgstat.c +++ b/src/backend/postmaster/pgstat.c @@ -13,7 +13,7 @@ * * Copyright (c) 2001-2007, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.147 2007/02/15 23:23:23 alvherre Exp $ + * $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.148 2007/03/01 20:06:56 tgl Exp $ * ---------- */ #include "postgres.h" @@ -1716,7 +1716,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 |