Skip to content
This repository was archived by the owner on Jan 19, 2021. It is now read-only.

Commit 116fc77

Browse files
committed
Merge pull request #312 from Segelfeldt/dev
Invoke-SPOWebAction - Time calculation bug fix.
2 parents 549a6f4 + 867533d commit 116fc77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Commands/InvokeAction/InvokeWebAction.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ private double CalculateRemainingTimeForList(ListCollection lists, int itemsProc
402402
if (_skipCounting)
403403
return -1;
404404

405-
double timeRemaining = ((_averageWebTime + _averagePostListTime) + (_averageShouldProcessListTime + _averageShouldProcessPostListTime)) * (lists.Count - itemsProcessed);
405+
double timeRemaining = ((_averageListTime + _averagePostListTime) + (_averageShouldProcessListTime + _averageShouldProcessPostListTime)) * (lists.Count - itemsProcessed);
406406
int remainingListItems = lists.Cast<List>().Skip(itemsProcessed).Sum(item => item.ItemCount);
407407

408408
if(_listItemActions.HasAnyAction)

0 commit comments

Comments
 (0)