From: wessels <> Date: Tue, 13 Oct 1998 02:26:41 +0000 (+0000) Subject: SGI fixes for rusage stuff X-Git-Tag: SQUID_3_0_PRE1~2595 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4fdc3986c9a6b2376e3fdaaaed1661ef8c2784b5;p=thirdparty%2Fsquid.git SGI fixes for rusage stuff --- diff --git a/src/tools.cc b/src/tools.cc index 96e9719982..133787632f 100644 --- a/src/tools.cc +++ b/src/tools.cc @@ -1,6 +1,6 @@ /* - * $Id: tools.cc,v 1.168 1998/09/22 17:50:33 wessels Exp $ + * $Id: tools.cc,v 1.169 1998/10/12 20:26:41 wessels Exp $ * * DEBUG: section 21 Misc Functions * AUTHOR: Harvest Derived @@ -178,7 +178,9 @@ rusage_cputime(struct rusage *r) int rusage_maxrss(struct rusage *r) { -#if defined(_SQUID_SGI_) +#if defined(_SQUID_SGI_) && _ABIAPI + return r->ru_pad[0]; +#elif defined(_SQUID_SGI_) return r->ru_maxrss; #elif defined(_SQUID_OSF_) return r->ru_maxrss; @@ -196,7 +198,11 @@ rusage_maxrss(struct rusage *r) int rusage_pagefaults(struct rusage *r) { +#if defined(_SQUID_SGI_) && _ABIAPI + return r->ru_pad[5]; +#else return r->ru_majflt; +#endif }