summaryrefslogtreecommitdiff
path: root/src/Propellor/Property
diff options
context:
space:
mode:
authorJoey Hess2017-12-20 17:50:03 -0400
committerJoey Hess2017-12-20 17:50:03 -0400
commit704259a2b4d11443c74e1dd4dd2ef1ba8d36ffd0 (patch)
treebd02078f8dfec19e99b971c8ad03e56eb891c439 /src/Propellor/Property
parentddc4f39e228b0b995c3dccb470a116867638e679 (diff)
parent59220d30d5bc89a461b13d45ea386851ff3a87e8 (diff)
Merge branch 'joeyconfig'
Diffstat (limited to 'src/Propellor/Property')
-rw-r--r--src/Propellor/Property/Parted/Types.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Propellor/Property/Parted/Types.hs b/src/Propellor/Property/Parted/Types.hs
index 6b6b42e2..e5c62739 100644
--- a/src/Propellor/Property/Parted/Types.hs
+++ b/src/Propellor/Property/Parted/Types.hs
@@ -88,6 +88,8 @@ instance Monoid PartSize where
reducePartSize :: PartSize -> PartSize -> PartSize
reducePartSize (MegaBytes a) (MegaBytes b) = MegaBytes (a - b)
+reducePartSize (Bytes a) b = Bytes (a - fromPartSize b)
+reducePartSize a (Bytes b) = Bytes (fromPartSize a - b)
-- | Partitions need to be aligned for optimal efficiency.
-- The alignment is a number of bytes.