Skip to content

Commit

Permalink
Put spectators after all non-spectators if possible
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffkaufman committed Feb 13, 2021
1 parent f55976c commit 70dd3c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,8 @@ def assign_delays(userid_lead) -> None:
initial_position + (x+2)*DELAY_INTERVAL
for x in range(n_follow_buckets)]
state.max_position = follow_positions[-1]
if n_follow_buckets < max_follow_buckets:
state.max_position += DELAY_INTERVAL

# Spectators all go in the last bucket.
for spectator in spectators:
Expand Down

0 comments on commit 70dd3c4

Please sign in to comment.