]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug #2088: sbrk statistics broken when process size >2GB.
authorhno <>
Fri, 21 Sep 2007 02:22:20 +0000 (02:22 +0000)
committerhno <>
Fri, 21 Sep 2007 02:22:20 +0000 (02:22 +0000)
src/stat.cc

index dcb46d13ba7520ff5a556439fab869a4f805cbd5..e8f928f7e45ef4e7077e7074952aca40cb706529 100644 (file)
@@ -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