Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
44f72c6e
Commit
44f72c6e
authored
Mar 01, 2007
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix miscalculation of stats collector's write delay, introduced in revision 1.117.
parent
cba2d271
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/backend/postmaster/pgstat.c
src/backend/postmaster/pgstat.c
+2
-2
No files found.
src/backend/postmaster/pgstat.c
View file @
44f72c6e
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
*
*
* Copyright (c) 2001-2007, PostgreSQL Global Development Group
* Copyright (c) 2001-2007, PostgreSQL Global Development Group
*
*
* $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.14
7 2007/02/15 23:23:23 alvherre
Exp $
* $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.14
8 2007/03/01 20:06:56 tgl
Exp $
* ----------
* ----------
*/
*/
#include "postgres.h"
#include "postgres.h"
...
@@ -1716,7 +1716,7 @@ PgstatCollectorMain(int argc, char *argv[])
...
@@ -1716,7 +1716,7 @@ PgstatCollectorMain(int argc, char *argv[])
/* Preset the delay between status file writes */
/* Preset the delay between status file writes */
MemSet
(
&
write_timeout
,
0
,
sizeof
(
struct
itimerval
));
MemSet
(
&
write_timeout
,
0
,
sizeof
(
struct
itimerval
));
write_timeout
.
it_value
.
tv_sec
=
PGSTAT_STAT_INTERVAL
/
1000
;
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
* Read in an existing statistics stats file or initialize the stats to
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment