]> git.pld-linux.org Git - packages/squid.git/commitdiff
47cc7566f9584c6f8c764afcb95ce636 squid-2.5.STABLE3-memwarnsbrk.patch
authorankry <ankry@pld-linux.org>
Mon, 21 Jul 2003 14:59:19 +0000 (14:59 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    squid-2.5.STABLE3-memwarnsbrk.patch -> 1.1

squid-2.5.STABLE3-memwarnsbrk.patch [new file with mode: 0644]

diff --git a/squid-2.5.STABLE3-memwarnsbrk.patch b/squid-2.5.STABLE3-memwarnsbrk.patch
new file mode 100644 (file)
index 0000000..c72729c
--- /dev/null
@@ -0,0 +1,15 @@
+Index: squid/src/stat.c
+diff -c squid/src/stat.c:1.351.2.8 squid/src/stat.c:1.351.2.9
+*** squid/src/stat.c:1.351.2.8 Sun Jan 26 22:00:46 2003
+--- squid/src/stat.c   Sun Jun 22 15:32:10 2003
+***************
+*** 950,955 ****
+--- 950,957 ----
+  #elif HAVE_MALLINFO && HAVE_STRUCT_MALLINFO
+       struct mallinfo mp = mallinfo();
+       i = mp.arena;
++ #elif HAVE_SBRK
++      i = (size_t) ((char *) sbrk(0) - (char *) sbrk_start);
+  #endif
+       if (Config.warnings.high_memory < i)
+           debug(18, 0) ("WARNING: Memory usage at %d MB\n", i >> 20);
This page took 0.034874 seconds and 4 git commands to generate.