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

downloader: to show more gradual progress when re-hashing/verying files #9805

Merged
merged 2 commits into from
Apr 2, 2024

Conversation

AskAlexSharov
Copy link
Collaborator

we recently changed field which used to measure progress from t.BytesCompleted() to t.Stats().BytesReadData - and seems it doesn't include "re-hashing" progress - so progress doesn't grow in logs and looks like it's stuck.

argument to change - was: t.BytesCompleted() is not recommended to use for "download rate calculation".

We don't use this field for rate calc, we using it for progress calc

Copy link

sonarcloud bot commented Mar 26, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@AskAlexSharov AskAlexSharov changed the title save downloader: to show more gradual progress when re-hashing/verying files Mar 26, 2024
if updateStats || infoRead.Int64() == 0 {
stats.BytesCompleted += uint64(*info.Length)
}
//infoRead := t.Stats().BytesReadData
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this needed to be kept as comments? if it is needed then ignore this comment

@AskAlexSharov AskAlexSharov merged commit 06864e0 into devel Apr 2, 2024
7 checks passed
@AskAlexSharov AskAlexSharov deleted the d_progress_of_rehash branch April 2, 2024 07:16
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