From: Dwayne M. Hubbard Date: Wed, 11 Apr 2007 22:10:26 +0000 (+0000) Subject: fixed the '-e' command line option for minmemfree. updated doc/asterisk-conf.tex X-Git-Tag: 1.6.0-beta1~3^2~2846 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9fc6cf1ac3d08b0e8da0d083cb0d0127e186db82;p=thirdparty%2Fasterisk.git 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 --- diff --git a/doc/asterisk-conf.tex b/doc/asterisk-conf.tex index 8464ca21dd..b474b65f0c 100644 --- a/doc/asterisk-conf.tex +++ b/doc/asterisk-conf.tex @@ -99,6 +99,9 @@ maxload = 1.0 ; The maximum number of concurrent calls you want to allow 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 execincludes = yes | no diff --git a/main/asterisk.c b/main/asterisk.c index 99604408bf..995b6df024 100644 --- a/main/asterisk.c +++ b/main/asterisk.c @@ -2607,7 +2607,7 @@ int main(int argc, char *argv[]) switch (c) { #if defined(HAVE_SYSINFO) 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; } break;