Skip to content

Commit

Permalink
Simplify progress bar computation
Browse files Browse the repository at this point in the history
  • Loading branch information
jecisc committed Jun 5, 2024
1 parent b850212 commit 920fa18
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Famix-Diff-Core/FamixDiffResolver.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,13 @@ FamixDiffResolver >> diffEntities [

[ :job |
| baseTodo targetTodo |
job max: self baseModel entities size.
"loops on this block"
[
| entitiesToMatchSize |
entitiesToMatchSize := (self entitiesToMatchIn: self baseModel) size.
job
progress: 1 - (entitiesToMatchSize / (self baseModel entities size max: 1));
currentValue: (job max - entitiesToMatchSize);
label: 'Diff computation in progress. ' , entitiesToMatchSize asString , ' left out of ' , self baseModel entities size asString.

baseTodo := (self topEntitiesToMatchIn: self baseModel) asOrderedCollection.
Expand Down

0 comments on commit 920fa18

Please sign in to comment.