Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Commit 21c6f62

Browse files
committed
CA-364152: Do not calculate completed percentage if there are no actions to run.
Signed-off-by: Konstantina Chremmou <[email protected]>
1 parent fabe186 commit 21c6f62

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

XenModel/Actions/ParallelAction.cs

+3
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,9 @@ void EnqueueAction(AsyncAction action, ProduceConsumerQueue queue, List<Exceptio
175175

176176
protected override void RecalculatePercentComplete()
177177
{
178+
if (actionsCount == 0)
179+
return;
180+
178181
int total = 0;
179182
foreach (IXenConnection connection in actionsByConnection.Keys)
180183
{

0 commit comments

Comments
 (0)