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

May fail with ZeroDevisionError #9

Open
just-doit opened this issue Aug 6, 2022 · 0 comments
Open

May fail with ZeroDevisionError #9

just-doit opened this issue Aug 6, 2022 · 0 comments

Comments

@just-doit
Copy link

I had a ZeroDevisionError in line 1101:
speed = float(chunk.block_size) / float(delta)
Since delta is based on time.time(), it can be 0.0 if the system is fast and the file is small or the resolution is too bad.
Under Windows 10 (for me) time.time() returns only two fractional digits.

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

No branches or pull requests

1 participant