Skip to content

Commit

Permalink
Set max size to cache size at init.
Browse files Browse the repository at this point in the history
  • Loading branch information
terrypacker committed Jun 24, 2019
1 parent 8d499db commit 862659d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Core/src/com/serotonin/m2m2/rt/dataImage/PointValueCache.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ public PointValueCache(int dataPointId, int defaultSize, List<PointValueTime> ca
}

//Set our known state of saved values
if (cache.size() > 0)
if (cache.size() > 0) {
this.latestSavedValueTime.set(cache.get(0).getTime());

this.maxSize = defaultSize;
this.maxSize = cache.size();
}
}
}

Expand Down

0 comments on commit 862659d

Please sign in to comment.