diff options
author | Jeremy Katz <katzj@redhat.com> | 2001-08-09 16:14:58 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2001-08-09 16:14:58 +0000 |
commit | befc28235f020a6d0e1d492f7d5a986ffafb59da (patch) | |
tree | e33241a9411a88433a20319fe737b9306d3fa810 /iutil.py | |
parent | b75fcfa659c395b7bfdf9fa3237275e02737eeea (diff) | |
download | anaconda-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.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |