mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
cancel update timer on complete
This commit is contained in:
parent
7c5613a42f
commit
22bfffc0eb
@ -97,6 +97,9 @@ public class ResolverForNBIOCache implements ContentResolver {
|
||||
public void run() {
|
||||
double progress = (double) totalBytesRead / fileSize * 100;
|
||||
logger.info(() -> "Progress: " + String.format("%.2f", progress) + "% completed");
|
||||
if (totalBytesRead==fileSize) {
|
||||
cancel();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user