diff base/StorageAdviser.cpp @ 1103:e86a7ea3dc38 simple-fft-model

Fix a cache-related dumbitude
author Chris Cannam
date Tue, 16 Jun 2015 20:28:23 +0100
parents 329ddaf7415d
children 393134235fa0
line wrap: on
line diff
--- a/base/StorageAdviser.cpp	Mon Jun 15 19:32:30 2015 +0100
+++ b/base/StorageAdviser.cpp	Tue Jun 16 20:28:23 2015 +0100
@@ -91,7 +91,7 @@
     ssize_t maxmb = ssize_t(maximumSize / 1024 + 1);
 
     if (memoryFree == -1) memoryStatus = Unknown;
-    else if (memoryFree < memoryTotal / 3) memoryStatus = Insufficient;
+    else if (memoryFree < memoryTotal / 3 && memoryFree < 512) memoryStatus = Insufficient;
     else if (minmb > (memoryFree * 3) / 4) memoryStatus = Insufficient;
     else if (maxmb > (memoryFree * 3) / 4) memoryStatus = Marginal;
     else if (minmb > (memoryFree / 3)) memoryStatus = Marginal;