]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix documentation for high_memory_warning config option and make it conditional
authorFrancesco Chemolli <kinkie@squid-cache.org>
Tue, 18 Mar 2014 10:05:32 +0000 (11:05 +0100)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Tue, 18 Mar 2014 10:05:32 +0000 (11:05 +0100)
src/cf.data.pre

index 194ee1696a2e9c7301e97d89dbd10a1ed7e12c85..5db39b51d2dcdc971cccd985421ea5703685b068 100644 (file)
@@ -9006,13 +9006,15 @@ DOC_END
 NAME: high_memory_warning
 TYPE: b_size_t
 LOC: Config.warnings.high_memory
+IFDEF: HAVE_MSTATS && HAVE_GNUMALLOC_H
 DEFAULT: 0 KB
 DEFAULT_DOC: disabled.
 DOC_START
-       If the memory usage (as determined by mallinfo) exceeds
-       this amount, Squid prints a WARNING with debug level 0 to get
+       If the memory usage (as determined by gnumalloc, if available and used)
+       exceeds this amount, Squid prints a WARNING with debug level 0 to get
        the administrators attention.
 DOC_END
+# TODO: link high_memory_warning to mempools?
 
 NAME: sleep_after_fork
 COMMENT: (microseconds)