Fix inverval logic, lel
parent
dfe4ca948a
commit
3dd98ff56a
|
@ -179,12 +179,11 @@ class Allocator(BaseModel):
|
||||||
# result in a mis-mapping of slots sizes in unit terms
|
# result in a mis-mapping of slots sizes in unit terms
|
||||||
# (i.e. it would take *more* slots to exit at a profit and
|
# (i.e. it would take *more* slots to exit at a profit and
|
||||||
# *less* slots to exit at a loss).
|
# *less* slots to exit at a loss).
|
||||||
|
|
||||||
slot_size = abs_startup_size / self.slots
|
slot_size = abs_startup_size / self.slots
|
||||||
|
|
||||||
if (
|
if (
|
||||||
live_size < slot_size or
|
abs_live_size < slot_size or
|
||||||
slot_size < live_size > 2*slot_size
|
slot_size < abs_live_size < (2*slot_size)
|
||||||
):
|
):
|
||||||
# the remaining pp is in between 0-2 slots
|
# the remaining pp is in between 0-2 slots
|
||||||
# so dump the whole position in this last exit
|
# so dump the whole position in this last exit
|
||||||
|
|
Loading…
Reference in New Issue