Skip to content

Commit

Permalink
fix comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulMcInnis committed Aug 31, 2020
1 parent c1136d5 commit ec4ac1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jobfunnel/backend/tools/delay.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def calculate_delays(list_len: int, delay_config: DelayConfig) -> List[float]:
raise ValueError(f"Cannot calculate delay for {delay_config.algorithm}")

# Check if minimum delay is above 0 and less than last element
if 0 < delay_config.min_duration:
if delay_config.min_duration > 0:
# sets min_duration to values greater than itself in delay_vals
for i, n in enumerate(delay_vals):
if n > delay_config.min_duration:
Expand Down

0 comments on commit ec4ac1e

Please sign in to comment.