fixed the '-e' command line option for minmemfree. updated doc/asterisk-conf.tex

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@61597 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.6.0
Dwayne M. Hubbard 19 years ago
parent 2151e532fe
commit 9fc6cf1ac3

@ -99,6 +99,9 @@ maxload = 1.0
; The maximum number of concurrent calls you want to allow ; The maximum number of concurrent calls you want to allow
maxcalls = 255 maxcalls = 255
; The minimum amount of free memory (specified in MB) that asterisk should stop accepting calls
minmemfree = 256
; Allow #exec entries in configuration files ; Allow #exec entries in configuration files
execincludes = yes | no execincludes = yes | no

@ -2607,7 +2607,7 @@ int main(int argc, char *argv[])
switch (c) { switch (c) {
#if defined(HAVE_SYSINFO) #if defined(HAVE_SYSINFO)
case 'e': case 'e':
if ((sscanf(optarg, "%ld", &option_minmemfree) != 1) || (option_minmemfree < 0)) { if ((sscanf(&optarg[1], "%ld", &option_minmemfree) != 1) || (option_minmemfree < 0)) {
option_minmemfree = 0; option_minmemfree = 0;
} }
break; break;

Loading…
Cancel
Save