Skip to content

Commit

Permalink
Spell deficit properly.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukasa committed Dec 8, 2015
1 parent fbdf9c1 commit 9628621
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/priority/priority.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def __init__(self, stream_id, weight=16):
self.child_queue = queue.PriorityQueue()
self.active = True
self.last_weight = 0
self._defecit = 0
self._deficit = 0

def add_child(self, child):
"""
Expand Down Expand Up @@ -139,8 +139,8 @@ def schedule(self):
finally:
for level, child in popped_streams:
self.last_weight = level
level += (256 + child._defecit) // child.weight
child._defecit = (256 + child._defecit) % child.weight
level += (256 + child._deficit) // child.weight
child._deficit = (256 + child._deficit) % child.weight
self.child_queue.put((level, child))

return next_stream
Expand Down

0 comments on commit 9628621

Please sign in to comment.