Skip to content

Commit ed6bb55

Browse files
(#2976) Use Response Time even if FLUSH has happened
1 parent 86d9bbd commit ed6bb55

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

WebApp/src/uk/ac/exeter/QuinCe/data/Dataset/ControsPco2MeasurementLocator.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ public List<Measurement> locateMeasurements(Connection conn,
113113
} else {
114114
// If there hasn't been a FLUSHING flag since the last zero,
115115
// flush for the default period calculated from the response time.
116-
if (lastStatus == ZERO
116+
// Or add the flushing time to the point after the FLUSH mode
117+
if ((lastStatus == ZERO || lastStatus == FLUSHING)
117118
&& DateTimeUtils.secondsBetween(currentStatusStart,
118119
recordTime) <= defaultFlushingTime) {
119120

0 commit comments

Comments
 (0)