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

Division by zero when duration is 0 #19

Open
JayFoxRox opened this issue Jul 19, 2018 · 0 comments
Open

Division by zero when duration is 0 #19

JayFoxRox opened this issue Jul 19, 2018 · 0 comments

Comments

@JayFoxRox
Copy link
Member

The following line can trigger a division by zero:

 print("Recorded %d flip stalls and %d PB commands (%.2f commands / second)" % (flipStallCount, commandCount, commandCount / duration))

This will likely happen if hooking into the PB failed and the timer resolution is too low.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant