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

bytesPerSec show wrong values #184

Closed
demimurych opened this issue Jan 5, 2011 · 1 comment
Closed

bytesPerSec show wrong values #184

demimurych opened this issue Jan 5, 2011 · 1 comment

Comments

@demimurych
Copy link

How to reproduce:

  1. Add file (90Mb). total.loaded = 0Mb.
  2. Start upload. (log show correct speed)
  3. file upload complete.. total.loaded = 90Mb.
  4. Add one more file to queue
  5. Start upload (log show INcorrect speed)

Explaine:
total.bytesPerSec = Math.ceil(total.loaded / ((+new Date() - startTime || 1) / 1000.0));

In step 6 total.loaded = 90Mb.
total.bytesPerSec = 90Mb/ 1sec

@meotimdihia
Copy link

bytesPerSec isn't accurate when upload then continue to upload

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

No branches or pull requests

3 participants