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 division by zero error when importing happens too fast #138

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

tdgroot
Copy link
Contributor

@tdgroot tdgroot commented Nov 29, 2016

I was writing a very simple import profile and that seemed to happen faster than 0.005 seconds.

Because the delta gets rounded to 2 decimals, it will result as 0 seconds. When calculating how many rows/entities per seconds, the importer will end up dividing by zero. This way the calculations will be legit again, more precise and the displayed delta will now be rounded to 4 decimals instead of 2.

If you have a different opinion on this issue, please let me know!

@tdgroot
Copy link
Contributor Author

tdgroot commented Feb 14, 2018

Is this going to be merged or can I close this one?

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