Skip to content

Commit

Permalink
'#1950: Compute parser total time from timesPerParser.
Browse files Browse the repository at this point in the history
  • Loading branch information
wladimirleite committed Oct 29, 2023
1 parent f6a3291 commit a4c6496
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -386,10 +386,9 @@ private String getParserTimes() {
addTitle(msg, 3, Messages.getString("ProgressFrame.ParserTimes"));

long totalTime = 0;
for (Worker worker : workers)
for (AbstractTask task : worker.tasks)
if (task.getClass().equals(ParsingTask.class))
totalTime += task.getTaskTime();
for (long parserTime : timesPerParser.values()) {
totalTime += parserTime;
}
if (totalTime < 1)
totalTime = 1;

Expand Down

0 comments on commit a4c6496

Please sign in to comment.