Merged revisions 317917 via svnmerge from
[asterisk/asterisk.git] / main / pbx.c
index 321b29a..b9c8535 100644 (file)
@@ -5134,7 +5134,7 @@ static int increase_call_count(const struct ast_channel *c)
                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);