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

README: add engine.swarm.downloadSpeed() and clarify engine.swarm.downloaded #173

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

Conversation

jeffjose
Copy link

There's 2 parts to this pull request. The first one should be straight forward - "Add engine.swarm.downloadSpeed()" to the documentation

The second is a clarification. From my tests, torrent-stream always ends up downloading more than the totalLength and hence engine.swarm.downloaded isnt a good metric to figure out what's left. In other words, trying to do a "%" by engine.swarm.downloaded/totalLength always goes above 100%.

…e.swarm.downloaded.

This is because you end up downloading more than the totalLength to get the actual file.
Possibly because of ignored/invalid chunks.
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.

None yet

1 participant