Skip to content

Commit 6d71d24

Browse files
authored
style: clearer conditional
1 parent 7aad6cc commit 6d71d24

File tree

1 file changed

+1
-1
lines changed
  • common-tools/clas-detector/src/main/java/org/jlab/detector/scalers

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public static double getSeconds(Date rst,Date uet) {
9999
public static DaqScalers create(Bank runScalerBank) {
100100
DaqScalers ds=new DaqScalers();
101101
ds.dsc2=new Dsc2Scaler();
102-
if (runScalerBank.getRows() >= 1) {
102+
if (runScalerBank.getRows() > 0) {
103103
ds.dsc2.setLivetime(runScalerBank.getFloat("livetime", 0));
104104
ds.dsc2.setBeamCharge(runScalerBank.getFloat("fcup",0));
105105
ds.dsc2.setBeamChargeGated(runScalerBank.getFloat("fcupgated",0));

0 commit comments

Comments
 (0)