mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 15:36:27 +00:00
Flip compairson for whether sector size is equal in Sectors
This commit is contained in:
parent
40f66d48cc
commit
c8ddd7de45
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ class Sectors(object):
|
||||||
if isinstance(other, (int, long)):
|
if isinstance(other, (int, long)):
|
||||||
return Sectors(self.bytes / other, self.sector_size)
|
return Sectors(self.bytes / other, self.sector_size)
|
||||||
if isinstance(other, Sectors):
|
if isinstance(other, Sectors):
|
||||||
if self.sector_size != other.sector_size:
|
if self.sector_size == other.sector_size:
|
||||||
return self.bytes / other.bytes
|
return self.bytes / other.bytes
|
||||||
else:
|
else:
|
||||||
raise UnitError('Cannot divide sectors with different sector sizes')
|
raise UnitError('Cannot divide sectors with different sector sizes')
|
||||||
|
|
Loading…
Add table
Reference in a new issue