summaryrefslogtreecommitdiffstats
path: root/iutil.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-12-03 20:53:48 +0000
committerJeremy Katz <katzj@redhat.com>2002-12-03 20:53:48 +0000
commit11c2742efcf7bb561f7e55eba5847a0a066e7e3b (patch)
tree0d334f1a5c707550827e0d08ed5d49e07bee8ac7 /iutil.py
parentd51e409ed9932856407e6e1b49ab11f8b40b2be8 (diff)
downloadanaconda-11c2742efcf7bb561f7e55eba5847a0a066e7e3b.tar.gz
anaconda-11c2742efcf7bb561f7e55eba5847a0a066e7e3b.tar.xz
anaconda-11c2742efcf7bb561f7e55eba5847a0a066e7e3b.zip
memoryOverhead isn't used anywhere anymore. simplify
Diffstat (limited to 'iutil.py')
-rw-r--r--iutil.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/iutil.py b/iutil.py
index 64d5bc7bc..425b2fd74 100644
--- a/iutil.py
+++ b/iutil.py
@@ -17,13 +17,6 @@ import types, os, sys, isys, select, string, stat, signal
import os.path
from rhpl.log import log
-memoryOverhead = 0
-
-def setMemoryOverhead(amount):
- global memoryOverhead
-
- memoryOverhead = amount
-
def getArch ():
arch = os.uname ()[4]
if (len (arch) == 4 and arch[0] == 'i' and
@@ -197,8 +190,6 @@ def copyFile(source, to, pw = None):
# this is in kilobytes
def memInstalled(corrected = 1):
- global memoryOverhead
-
if not os.access('/proc/e820info', os.R_OK):
f = open("/proc/meminfo", "r")
mem = f.readlines()[1]
@@ -215,9 +206,6 @@ def memInstalled(corrected = 1):
if fields[3] == "(usable)":
mem = mem + (string.atol(fields[0], 16) / 1024)
- if corrected:
- mem = mem - memoryOverhead
-
return int(mem)
# try to keep 2.4 kernel swapper happy!