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

关于计算hash进度的优化 #13

Open
tuhongwei opened this issue Feb 26, 2021 · 0 comments
Open

关于计算hash进度的优化 #13

tuhongwei opened this issue Feb 26, 2021 · 0 comments

Comments

@tuhongwei
Copy link

计算hash时用的是percentage += 100 / fileChunkList.length会导致计算的进度不是连续的,尤其只有一个切片的时候,直接从0到100%了,建议放在onprogress事件中,可通过(e.loaded + size * count) / fileSize * 100生成连续的进度

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