Skip to content

Commit

Permalink
Fix processing display problem (#383)
Browse files Browse the repository at this point in the history
  • Loading branch information
liyuheng55555 authored Dec 13, 2023
1 parent d43030e commit bb0f9d9
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 bb0f9d9

Please sign in to comment.