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

Progress for on demand repair jobs is either 0% or 100% #593 #618

Merged
merged 2 commits into from
Nov 28, 2023

Conversation

SajidRiaz138
Copy link
Contributor

  • Calculates the progress of the ongoing repair job.
  • The progress is determined based on the number of repaired tokens compared to the total number of tokens.
  • If there are no tokens to repair (myTotalTokens is zero), the progress is reported as zero.
  • Once the repair job reaches the 'finished' status, progress is reported as 100% (1.0).
  • Otherwise, the progress is calculated as the ratio of the number of repaired tokens to the total number of tokens.

sajid riaz added 2 commits November 27, 2023 13:09
Issue#593: Progress for on demand repair jobs
is either 0% or 100%

Fix this issue by calculating progress on the
base of totalTokens and repaired tokens instead
of number of total tasks and finished task.
@tommystendahl tommystendahl merged commit 0825c72 into Ericsson:master Nov 28, 2023
7 checks passed
VictorCavichioli pushed a commit to VictorCavichioli/ecchronos that referenced this pull request Dec 6, 2023
…Ericsson#618)

* Fix progress tracking for On demand Repair Jobs Ericsson#593

Issue#593: Progress for on demand repair jobs
is either 0% or 100%

Fix this issue by calculating progress on the
base of totalTokens and repaired tokens instead
of number of total tasks and finished task.

* updated changes.md

---------

Co-authored-by: sajid riaz <sajid.riaz@ericsson.com>
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