Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Limit the number of prev_events of new events #1615

Merged
merged 2 commits into from Nov 8, 2016

Conversation

erikjohnston
Copy link
Member

No description provided.

# We also randomly point to some of the older events, to make
# sure that we don't completely ignore the older events.
if latest_ret[5:]:
sample_size = min(5, len(latest_ret[5:]))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The sample size is always 5 here, since this code is only hit if len(latest_ret) > 10.

@erikjohnston erikjohnston merged commit 17e0a58 into develop Nov 8, 2016
@richvdh richvdh deleted the erikj/limit_prev_events branch December 1, 2016 14:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants