Skip to content

Commit

Permalink
Progressbar update bei Prenotification Mail Versand (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannMaierhofer authored May 18, 2024
1 parent 464d187 commit f1bc788
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,8 @@ public void run(ProgressMonitor monitor)
monitor.setStatus(ProgressMonitor.STATUS_RUNNING);
monitor.setPercentComplete(0);
int sentCount = 0;
int zae = 0;
int size = it.size();
while (it.hasNext())
{
Lastschrift ls = (Lastschrift) it.next();
Expand Down Expand Up @@ -555,6 +557,9 @@ public void run(ProgressMonitor monitor)
Logger.error("Fehler beim Mailversand", e);
monitor.log(ls.getEmail() + " - " + e.getMessage());
}
zae++;
double proz = (double) zae / (double) size * 100d;
monitor.setPercentComplete((int) proz);
}
monitor.setPercentComplete(100);
monitor.setStatus(ProgressMonitor.STATUS_DONE);
Expand Down

0 comments on commit f1bc788

Please sign in to comment.