From: hno <> Date: Fri, 21 Sep 2007 02:22:20 +0000 (+0000) Subject: Bug #2088: sbrk statistics broken when process size >2GB. X-Git-Tag: SQUID_3_0_RC1~29 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=560b8caa509cdc0603d3de35356cda86c1860db5;p=thirdparty%2Fsquid.git Bug #2088: sbrk statistics broken when process size >2GB. --- diff --git a/src/stat.cc b/src/stat.cc index dcb46d13ba..e8f928f7e4 100644 --- a/src/stat.cc +++ b/src/stat.cc @@ -1,5 +1,5 @@ /* - * $Id: stat.cc,v 1.409 2007/09/01 13:09:59 hno Exp $ + * $Id: stat.cc,v 1.410 2007/09/20 20:22:20 hno Exp $ * * DEBUG: section 18 Cache Manager Statistics * AUTHOR: Harvest Derived @@ -609,8 +609,8 @@ info_get(StoreEntry * sentry) #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