Skip to content

Commit e9f37a7

Browse files
committed
Somewhat backwards #ifdef's for HAVE_GETRUSAGE
1 parent 08a5901 commit e9f37a7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/backend/tcop/postgres.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.32 1997/04/23 18:02:43 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.33 1997/04/24 03:39:09 scrappy Exp $
1111
*
1212
* NOTES
1313
* this is the "main" module of the postgres backend and
@@ -1270,7 +1270,7 @@ PostgresMain(int argc, char *argv[])
12701270
*/
12711271
if (IsUnderPostmaster == false) {
12721272
puts("\nPOSTGRES backend interactive interface");
1273-
puts("$Revision: 1.32 $ $Date: 1997/04/23 18:02:43 $");
1273+
puts("$Revision: 1.33 $ $Date: 1997/04/24 03:39:09 $");
12741274
}
12751275

12761276
/* ----------------
@@ -1467,7 +1467,7 @@ PostgresMain(int argc, char *argv[])
14671467
return 1;
14681468
}
14691469

1470-
#ifdef HAVE_GETRUSAGE
1470+
#ifndef HAVE_GETRUSAGE
14711471
#include "rusagestub.h"
14721472
#else /* HAVE_GETRUSAGE */
14731473
#include <sys/resource.h>
@@ -1535,7 +1535,7 @@ ShowUsage(void)
15351535
(long int) user.tv_usec,
15361536
(long int) sys.tv_sec,
15371537
(long int) sys.tv_usec);
1538-
#ifndef HAVE_GETRUSAGE
1538+
#ifdef HAVE_GETRUSAGE
15391539
fprintf(StatFp,
15401540
"!\t%ld/%ld [%ld/%ld] filesystem blocks in/out\n",
15411541
r.ru_inblock - Save_r.ru_inblock,

0 commit comments

Comments
 (0)