From d6be8854260eacc12b57b6b4e39c9f4b54af2f78 Mon Sep 17 00:00:00 2001 From: Jeremy Katz Date: Wed, 25 Jul 2001 20:10:44 +0000 Subject: request sizes are megabytes... using the same units in comparisons is a good thing (tm) --- autopart.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'autopart.py') 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) -- cgit