Skip to content

Commit 569c65a

Browse files
committed
fix: rat warning
1 parent cd4c205 commit 569c65a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

common-tools/clas-detector/src/main/java/org/jlab/detector/scalers/DaqScalersSequence.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,8 +406,9 @@ public void fixClockRollover() {
406406
break;
407407
}
408408
if (j==i) {
409-
if (Math.abs( ((double)diff/ROLLOVER) - 1 ) > 0.01) {
410-
logger.warning("found " + clock_name + " rollover of unexpected size " + diff + " (expected about " + ROLLOVER + ")");
409+
double rat = Math.abs((double)diff/ROLLOVER) - 1;
410+
if (Math.abs(rat) > 0.001) {
411+
logger.warning("found " + clock_name + " rollover of unexpected size; off by " + rat*100 + "%");
411412
}
412413
}
413414
}

0 commit comments

Comments
 (0)