Fix inverval logic, lel

fsp_feeds
Tyler Goodlet 2021-08-27 15:30:07 -04:00
parent dfe4ca948a
commit 3dd98ff56a
1 changed files with 2 additions and 3 deletions

View File

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