summaryrefslogtreecommitdiffstats
path: root/iutil.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2001-08-09 16:14:58 +0000
committerJeremy Katz <katzj@redhat.com>2001-08-09 16:14:58 +0000
commitbefc28235f020a6d0e1d492f7d5a986ffafb59da (patch)
treee33241a9411a88433a20319fe737b9306d3fa810 /iutil.py
parentb75fcfa659c395b7bfdf9fa3237275e02737eeea (diff)
downloadanaconda-befc28235f020a6d0e1d492f7d5a986ffafb59da.tar.gz
anaconda-befc28235f020a6d0e1d492f7d5a986ffafb59da.tar.xz
anaconda-befc28235f020a6d0e1d492f7d5a986ffafb59da.zip
oops, memInstalled returns in kilobytes, not bytes
Diffstat (limited to 'iutil.py')
-rw-r--r--iutil.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/iutil.py b/iutil.py
index 0b37dc435..4b5138849 100644
--- a/iutil.py
+++ b/iutil.py
@@ -185,6 +185,7 @@ def copyFile(source, to, pw = None):
win.pop()
+# this is in kilobytes
def memInstalled(corrected = 1):
global memoryOverhead
@@ -202,7 +203,7 @@ def memInstalled(corrected = 1):
for line in lines:
fields = string.split(line)
if fields[3] == "(usable)":
- mem = mem + string.atoi(fields[0], 16)
+ mem = mem + (string.atoi(fields[0], 16) / 1024)
if corrected:
mem = mem - memoryOverhead