Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the expiry calculation of requests #14

Closed

Conversation

jsumakanth
Copy link
Contributor

Convert the configured max_time value to microseconds for proper calculation.

Convert the configured max_time value to microseconds for proper calculation.
@@ -259,4 +259,4 @@ empty(#queue{st = #st{table = T}} = Q) ->

is_expired(TS, Now, TO) ->
MS = Now - TS,
MS > TO.
MS > TO * 1000.
Copy link
Owner

Choose a reason for hiding this comment

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

Yes, but I think it would be better to convert to microsecs before starting the iteration, i.e. on line 241

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agreed.

@jsumakanth jsumakanth closed this Jul 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants