From c8ddd7de4558eda216c618362b419617b311b224 Mon Sep 17 00:00:00 2001 From: Anders Ingemann Date: Wed, 29 Apr 2015 20:46:53 +0200 Subject: [PATCH] Flip compairson for whether sector size is equal in Sectors --- bootstrapvz/common/sectors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrapvz/common/sectors.py b/bootstrapvz/common/sectors.py index 92db8f7..d658140 100644 --- a/bootstrapvz/common/sectors.py +++ b/bootstrapvz/common/sectors.py @@ -134,7 +134,7 @@ class Sectors(object): if isinstance(other, (int, long)): return Sectors(self.bytes / other, self.sector_size) if isinstance(other, Sectors): - if self.sector_size != other.sector_size: + if self.sector_size == other.sector_size: return self.bytes / other.bytes else: raise UnitError('Cannot divide sectors with different sector sizes')