summaryrefslogtreecommitdiffstats
path: root/iutil.py
diff options
context:
space:
mode:
Diffstat (limited to 'iutil.py')
-rw-r--r--iutil.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/iutil.py b/iutil.py
index e9497fd1f..c454f073b 100644
--- a/iutil.py
+++ b/iutil.py
@@ -201,11 +201,13 @@ def swapSuggestion():
minswap = 96
maxswap = 192
else:
- minswap = mem
if mem > 1000:
+ minswap = 1000
maxswap = 2000
else:
+ minswap = mem
maxswap = 2*mem
+
log("Swap attempt of %sM to %sM", minswap, maxswap)
return (minswap, maxswap)