mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-22 18:00:35 +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)):
|
||||
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')
|
||||
|
|
Loading…
Add table
Reference in a new issue