Skip to content

Commit

Permalink
CA-364152: Do not calculate completed percentage if there are no acti…
Browse files Browse the repository at this point in the history
…ons to run.

Signed-off-by: Konstantina Chremmou <[email protected]>
  • Loading branch information
kc284 committed Feb 23, 2022
1 parent fabe186 commit 21c6f62
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions XenModel/Actions/ParallelAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ void EnqueueAction(AsyncAction action, ProduceConsumerQueue queue, List<Exceptio

protected override void RecalculatePercentComplete()
{
if (actionsCount == 0)
return;

int total = 0;
foreach (IXenConnection connection in actionsByConnection.Keys)
{
Expand Down

0 comments on commit 21c6f62

Please sign in to comment.