summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2001-07-25 20:10:44 +0000
committerJeremy Katz <katzj@redhat.com>2001-07-25 20:10:44 +0000
commitd6be8854260eacc12b57b6b4e39c9f4b54af2f78 (patch)
tree0c40ffeb4936e3e60c2443e0ba770761aa023a2e
parent21969f123e8521a50b7fec6b1105bdb55d16959b (diff)
downloadanaconda-d6be8854260eacc12b57b6b4e39c9f4b54af2f78.tar.gz
anaconda-d6be8854260eacc12b57b6b4e39c9f4b54af2f78.tar.xz
anaconda-d6be8854260eacc12b57b6b4e39c9f4b54af2f78.zip
request sizes are megabytes... using the same units in comparisons is a good thing (tm)
-rw-r--r--autopart.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/autopart.py b/autopart.py
index 8c53eacab..09fc00737 100644
--- a/autopart.py
+++ b/autopart.py
@@ -260,7 +260,7 @@ def fitSized(diskset, requests, primOnly = 0, newParts = None):
for part in free[drive]:
# print "Trying partition", printFreespaceitem(part)
- partSize = getPartSize(part)
+ partSize = getPartSizeMB(part)
if partSize >= request.requestSize and partSize > largestPart[0]:
if not request.primary or (not part.type & parted.PARTITION_LOGICAL):
largestPart = (partSize, part)