[svn-commits] russell: branch 1.8 r317917 - /branches/1.8/main/pbx.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Fri May 6 16:06:38 CDT 2011
Author: russell
Date: Fri May 6 16:06:33 2011
New Revision: 317917
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=317917
Log:
Fix calculation of free RAM to make minmemfree option work.
(closes issue #17124)
Reported by: loic
Patches:
pbx_c.diff uploaded by loic (license 1020)
Modified:
branches/1.8/main/pbx.c
Modified: branches/1.8/main/pbx.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/pbx.c?view=diff&rev=317917&r1=317916&r2=317917
==============================================================================
--- branches/1.8/main/pbx.c (original)
+++ branches/1.8/main/pbx.c Fri May 6 16:06:33 2011
@@ -5002,7 +5002,7 @@
if (!sysinfo(&sys_info)) {
/* make sure that the free system memory is above the configured low watermark
* convert the amount of freeram from mem_units to MB */
- curfreemem = sys_info.freeram / sys_info.mem_unit;
+ curfreemem = sys_info.freeram * sys_info.mem_unit;
curfreemem /= 1024 * 1024;
if (curfreemem < option_minmemfree) {
ast_log(LOG_WARNING, "Available system memory (~%ldMB) is below the configured low watermark (%ldMB)\n", curfreemem, option_minmemfree);
More information about the svn-commits
mailing list