diff options
author | Mike Fulbright <msf@redhat.com> | 2001-03-22 20:52:28 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2001-03-22 20:52:28 +0000 |
commit | 4b109b05fec7e11cd4cf644c2453875451578e39 (patch) | |
tree | 63b7c593775bcb25d0f81155a81f4b2160b468f0 /iutil.py | |
parent | 959d004ae1e16b224d79cf003d2612d367dd8663 (diff) | |
download | anaconda-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.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) |