--------------------- PatchSet 11683 Date: 2007/09/20 20:22:00 Author: hno Branch: HEAD Tag: (none) Log: Bug #2088: sbrk statistics broken when process size >2GB. Members: src/stat.c:1.380->1.381 Index: squid/src/stat.c =================================================================== RCS file: /cvsroot/squid/squid/src/stat.c,v retrieving revision 1.380 retrieving revision 1.381 diff -u -r1.380 -r1.381 --- squid/src/stat.c 14 Mar 2007 21:16:06 -0000 1.380 +++ squid/src/stat.c 20 Sep 2007 20:22:00 -0000 1.381 @@ -1,6 +1,6 @@ /* - * $Id: stat.c,v 1.380 2007/03/14 21:16:06 hno Exp $ + * $Id: stat.c,v 1.381 2007/09/20 20:22:00 hno Exp $ * * DEBUG: section 18 Cache Manager Statistics * AUTHOR: Harvest Derived @@ -589,8 +589,8 @@ storeAppendPrintf(sentry, "\tCPU Usage, 60 minute avg:\t%.2f%%\n", statCPUUsage(60)); #if HAVE_SBRK - storeAppendPrintf(sentry, "\tProcess Data Segment Size via sbrk(): %d KB\n", - (int) (((char *) sbrk(0) - (char *) sbrk_start) >> 10)); + storeAppendPrintf(sentry, "\tProcess Data Segment Size via sbrk(): %lu KB\n", + (unsigned long) (((char *) sbrk(0) - (char *) sbrk_start) >> 10)); #endif storeAppendPrintf(sentry, "\tMaximum Resident Size: %d KB\n", rusage_maxrss(&rusage));