mirror of
https://github.com/postgres/postgres.git
synced 2025-06-14 18:42:34 +03:00
Somewhat backwards #ifdef's for HAVE_GETRUSAGE
This commit is contained in:
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.32 1997/04/23 18:02:43 scrappy Exp $
|
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.33 1997/04/24 03:39:09 scrappy Exp $
|
||||||
*
|
*
|
||||||
* NOTES
|
* NOTES
|
||||||
* this is the "main" module of the postgres backend and
|
* this is the "main" module of the postgres backend and
|
||||||
@ -1270,7 +1270,7 @@ PostgresMain(int argc, char *argv[])
|
|||||||
*/
|
*/
|
||||||
if (IsUnderPostmaster == false) {
|
if (IsUnderPostmaster == false) {
|
||||||
puts("\nPOSTGRES backend interactive interface");
|
puts("\nPOSTGRES backend interactive interface");
|
||||||
puts("$Revision: 1.32 $ $Date: 1997/04/23 18:02:43 $");
|
puts("$Revision: 1.33 $ $Date: 1997/04/24 03:39:09 $");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ----------------
|
/* ----------------
|
||||||
@ -1467,7 +1467,7 @@ PostgresMain(int argc, char *argv[])
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_GETRUSAGE
|
#ifndef HAVE_GETRUSAGE
|
||||||
#include "rusagestub.h"
|
#include "rusagestub.h"
|
||||||
#else /* HAVE_GETRUSAGE */
|
#else /* HAVE_GETRUSAGE */
|
||||||
#include <sys/resource.h>
|
#include <sys/resource.h>
|
||||||
@ -1535,7 +1535,7 @@ ShowUsage(void)
|
|||||||
(long int) user.tv_usec,
|
(long int) user.tv_usec,
|
||||||
(long int) sys.tv_sec,
|
(long int) sys.tv_sec,
|
||||||
(long int) sys.tv_usec);
|
(long int) sys.tv_usec);
|
||||||
#ifndef HAVE_GETRUSAGE
|
#ifdef HAVE_GETRUSAGE
|
||||||
fprintf(StatFp,
|
fprintf(StatFp,
|
||||||
"!\t%ld/%ld [%ld/%ld] filesystem blocks in/out\n",
|
"!\t%ld/%ld [%ld/%ld] filesystem blocks in/out\n",
|
||||||
r.ru_inblock - Save_r.ru_inblock,
|
r.ru_inblock - Save_r.ru_inblock,
|
||||||
|
Reference in New Issue
Block a user