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

Limit to 10 updates per second #5

Merged
merged 1 commit into from
Apr 14, 2018
Merged

Conversation

worsety
Copy link
Contributor

@worsety worsety commented Apr 13, 2018

No description provided.

Program.cs Outdated
@@ -240,6 +239,8 @@ public static object DoStuff(LMRItemTracker.LaMulanaItemTrackerForm laMulanaItem
{
System.Console.WriteLine(ex.StackTrace);
}

Thread.Sleep(sleeptarget - DateTime.UtcNow);
Copy link
Owner

@thezerothcat thezerothcat Apr 13, 2018

Choose a reason for hiding this comment

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

What if things get delayed somehow and we wind up with a negative number here? It looks like that would cause an error (System.ArgumentOutOfRangeException, apparently).

@thezerothcat thezerothcat merged commit a6f7a1f into thezerothcat:master Apr 14, 2018
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