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

🐞 Fix Negative number for plan/migration status VMs count #1319

Commits on Sep 5, 2024

  1. Fix Negative number for plan/migration status's VMs count

    On both plan and migration status fields, the number of displayed
    migrated VMs within the status' progress bar label is sometimes negative,
    i.e.  the value of X within "X out of Y VMs migrated" is sometimes
    negative.
    
    This is reproduced when at least one VM failed to migrated.
    
    The reason is that failed VMs is often marked with an error but their completed
    value is still set to false since VM's migration was not finished yet. So the
    calculation of migrated = completed - error < 0.
    
    Signed-off-by: Sharon Gratch <sgratch@redhat.com>
    sgratch committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    792730b View commit details
    Browse the repository at this point in the history