[svn-commits] dhubbard: trunk r61597 - in /trunk: doc/asterisk-conf.tex main/asterisk.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Wed Apr 11 15:10:27 MST 2007


Author: dhubbard
Date: Wed Apr 11 17:10:26 2007
New Revision: 61597

URL: http://svn.digium.com/view/asterisk?view=rev&rev=61597
Log:
fixed the '-e' command line option for minmemfree.  updated doc/asterisk-conf.tex

Modified:
    trunk/doc/asterisk-conf.tex
    trunk/main/asterisk.c

Modified: trunk/doc/asterisk-conf.tex
URL: http://svn.digium.com/view/asterisk/trunk/doc/asterisk-conf.tex?view=diff&rev=61597&r1=61596&r2=61597
==============================================================================
--- trunk/doc/asterisk-conf.tex (original)
+++ trunk/doc/asterisk-conf.tex Wed Apr 11 17:10:26 2007
@@ -99,6 +99,9 @@
 ; 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
 

Modified: trunk/main/asterisk.c
URL: http://svn.digium.com/view/asterisk/trunk/main/asterisk.c?view=diff&rev=61597&r1=61596&r2=61597
==============================================================================
--- trunk/main/asterisk.c (original)
+++ trunk/main/asterisk.c Wed Apr 11 17:10:26 2007
@@ -2607,7 +2607,7 @@
 		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;



More information about the svn-commits mailing list