[PATCH 3/8] Don't use float for anything.
David Lehman
dlehman at redhat.com
Thu Feb 20 18:01:35 UTC 2014
---
blivet/partitioning.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/blivet/partitioning.py b/blivet/partitioning.py
index cbb3c23..3b60206 100644
--- a/blivet/partitioning.py
+++ b/blivet/partitioning.py
@@ -1490,7 +1490,7 @@ class Chunk(object):
# Each request is allocated free units from the pool
# based on the relative _base_ sizes of the remaining
# growable requests.
- share = p.base / float(self.base)
+ share = p.base / self.base
growth = int(share * last_pool) # truncate, don't round
p.growth += growth
--
1.8.5.3
More information about the anaconda-patches
mailing list