From bfed62277f318a8b1b48ff10060a4f58efbfff64 Mon Sep 17 00:00:00 2001
From: Mathieu Lutfy <mathieu@bidon.ca>
Date: Tue, 3 Jul 2012 18:48:17 -0400
Subject: [PATCH] Issue #1407478 : only try to increase the memory if it is
 really low.

---
 boost.module | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/boost.module b/boost.module
index f2b51c9..50437c2 100644
--- a/boost.module
+++ b/boost.module
@@ -1282,7 +1282,8 @@ function boost_views_async() {
       $m_limit_int = substr($m_limit, 0, -1);
       $m_limit_int = (int) $m_limit_int;
       $m_limit_scale = strtoupper(substr($m_limit, -1));
-      if ($m_limit_scale == 'M') {
+
+      if ($m_limit_scale == 'M' && $m_limit_int < 256) {
         @ini_set('memory_limit', $m_limit_int*4 . 'M');
       }
 
-- 
GitLab