diff --git a/core/src/main/java/cn/edu/tsinghua/iot/benchmark/client/DataClient.java b/core/src/main/java/cn/edu/tsinghua/iot/benchmark/client/DataClient.java index df17b7f03..9dbf7a828 100644 --- a/core/src/main/java/cn/edu/tsinghua/iot/benchmark/client/DataClient.java +++ b/core/src/main/java/cn/edu/tsinghua/iot/benchmark/client/DataClient.java @@ -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,