Skip to content

Commit

Permalink
done
Browse files Browse the repository at this point in the history
  • Loading branch information
liyuheng55555 committed Dec 13, 2023
1 parent d43030e commit 21e8322
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public void run() {
// print current progress periodically
service.scheduleAtFixedRate(
() -> {
String percent = String.format("%.2f", (loopIndex + 1) * 100.0D / this.totalLoop);
String percent = String.format("%.2f", loopIndex * 100.0D / this.totalLoop);
LOGGER.info("{} {}% workload is done.", currentThread, percent);
},
1,
Expand Down

0 comments on commit 21e8322

Please sign in to comment.