bug fix
This commit is contained in:
parent
1983f3a55d
commit
19bd06e28b
1 changed files with 1 additions and 1 deletions
|
|
@ -84,7 +84,7 @@ public class AggregateDataListSqlResult implements SQLResultHandler<ArrayList<Ag
|
|||
|
||||
// Only add nulls if the report interval is smaller than the aggregated interval
|
||||
if (sensor.getDeviceData() == null ||
|
||||
timestampStart-timestampEnd > sensor.getDeviceData().getDataInterval()) {
|
||||
timestampEnd-timestampStart > sensor.getDeviceData().getDataInterval()) {
|
||||
// Add null data point to list if one or more periods of data is missing before this
|
||||
if (previousTimestampEnd != -1 && previousTimestampEnd + 1 < timestampStart) {
|
||||
list.add(new AggregateData(id, previousTimestampEnd + 1, null /*Float.NaN*/, username));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue