From: wessels <> Date: Sat, 3 Jan 1998 04:52:40 +0000 (+0000) Subject: use PAGESIZE value if defined X-Git-Tag: SQUID_3_0_PRE1~4279 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c7a1083da0ffcce0cdfa60f1ec7c4401293e8cd7;p=thirdparty%2Fsquid.git use PAGESIZE value if defined --- diff --git a/src/tools.cc b/src/tools.cc index 840fd5d8d4..a8522fe7b9 100644 --- a/src/tools.cc +++ b/src/tools.cc @@ -1,6 +1,6 @@ /* - * $Id: tools.cc,v 1.139 1998/01/02 21:35:15 wessels Exp $ + * $Id: tools.cc,v 1.140 1998/01/02 21:52:40 wessels Exp $ * * DEBUG: section 21 Misc Functions * AUTHOR: Harvest Derived @@ -253,6 +253,8 @@ rusage_maxrss(struct rusage *r) return r->ru_maxrss; #elif HAVE_GETPAGESIZE return (r->ru_maxrss * getpagesize()) >> 10; +#elif defined(PAGESIZE) + return (r->ru_maxrss * PAGESIZE) >> 10; #else return r->ru_maxrss; #endif