Skip to content

Commit fb46d18

Browse files
committed
add comments
1 parent 35a45b2 commit fb46d18

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

common-tools/clara-io/src/main/java/org/jlab/io/clara/DecoderWriter.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ protected void writeEvent(Object event) throws EventWriterException {
9191
if (runConfig.getRows() > 0) {
9292
int unix = runConfig.getInt("unixTime",0);
9393
int evno = runConfig.getInt("event",0);
94+
// if this event has a good unix time, store it for later:
9495
if (unix > 0) unixEventMap.put(evno, unix);
96+
// otherwise update it with the latest unix time reading:
9597
else runConfig.putInt("unixTime",0, unixEventMap.get(unixEventMap.floorKey(evno)));
9698
}
9799
Event t = CLASDecoder4.createTaggedEvent((Event)event, runConfig, tag1banks);

0 commit comments

Comments
 (0)