summaryrefslogtreecommitdiffstats
path: root/iutil.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2001-03-22 20:52:28 +0000
committerMike Fulbright <msf@redhat.com>2001-03-22 20:52:28 +0000
commit4b109b05fec7e11cd4cf644c2453875451578e39 (patch)
tree63b7c593775bcb25d0f81155a81f4b2160b468f0 /iutil.py
parent959d004ae1e16b224d79cf003d2612d367dd8663 (diff)
downloadanaconda-4b109b05fec7e11cd4cf644c2453875451578e39.tar.gz
anaconda-4b109b05fec7e11cd4cf644c2453875451578e39.tar.xz
anaconda-4b109b05fec7e11cd4cf644c2453875451578e39.zip
dont let min get bigger than max\!
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)