File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 13
13
*
14
14
* Copyright (c) 2001-2007, PostgreSQL Global Development Group
15
15
*
16
- * $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.147 2007/02/15 23:23:23 alvherre Exp $
16
+ * $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.148 2007/03/01 20:06:56 tgl Exp $
17
17
* ----------
18
18
*/
19
19
#include "postgres.h"
@@ -1716,7 +1716,7 @@ PgstatCollectorMain(int argc, char *argv[])
1716
1716
/* Preset the delay between status file writes */
1717
1717
MemSet (& write_timeout , 0 , sizeof (struct itimerval ));
1718
1718
write_timeout .it_value .tv_sec = PGSTAT_STAT_INTERVAL / 1000 ;
1719
- write_timeout .it_value .tv_usec = PGSTAT_STAT_INTERVAL % 1000 ;
1719
+ write_timeout .it_value .tv_usec = ( PGSTAT_STAT_INTERVAL % 1000 ) * 1000 ;
1720
1720
1721
1721
/*
1722
1722
* Read in an existing statistics stats file or initialize the stats to
You can’t perform that action at this time.
0 commit comments