Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit44f72c6

Browse files
committed
Fix miscalculation of stats collector's write delay, introduced in revision 1.117.
1 parentcba2d27 commit44f72c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/backend/postmaster/pgstat.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*
1414
*Copyright (c) 2001-2007, PostgreSQL Global Development Group
1515
*
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 $
1717
* ----------
1818
*/
1919
#include"postgres.h"
@@ -1716,7 +1716,7 @@ PgstatCollectorMain(int argc, char *argv[])
17161716
/* Preset the delay between status file writes */
17171717
MemSet(&write_timeout,0,sizeof(structitimerval));
17181718
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;
17201720

17211721
/*
17221722
* Read in an existing statistics stats file or initialize the stats to

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp