1 parent e983c40 commit 42a1fd3Copy full SHA for 42a1fd3
1 file changed
common-tools/clas-utils/src/main/java/org/jlab/utils/benchmark/ProgressPrintout.java
@@ -55,14 +55,14 @@ public void showStatus(){
55
}
56
57
public void updateStatus(){
58
- if (++this.numberOfCalls < WARMUP_CALLS) {
+ if (++this.numberOfCalls < WARMUP_CALLS){
59
this.previousPrintoutTime = System.currentTimeMillis();
60
this.startPrintoutTime = this.previousPrintoutTime;
61
62
- else {
+ else if(this.printoutIntervalSeconds > 0){
63
Long currentTime = System.currentTimeMillis();
64
Double elapsedTime = (currentTime - this.previousPrintoutTime)*1e-3;
65
- if(elapsedTime >= this.printoutIntervalSeconds){
+ if(elapsedTime >= this.printoutIntervalSeconds) {
66
67
System.out.println(this.getUpdateString());
68
0 commit comments