]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
use PAGESIZE value if defined
authorwessels <>
Sat, 3 Jan 1998 04:52:40 +0000 (04:52 +0000)
committerwessels <>
Sat, 3 Jan 1998 04:52:40 +0000 (04:52 +0000)
src/tools.cc

index 840fd5d8d4b6bcbaa7234d175a615e9c3b043a18..a8522fe7b95bf129068aa427174cf020f0de487b 100644 (file)
@@ -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