this.items = items;
this.chartDataId = identityHashCode;
}
+
+ public void flush() throws HistoryException {
+ if (collector != null)
+ collector.flush();
+ }
public void open() throws HistoryException {
accessor = history.openStream(items[0].id, "r");
return true;
}
- private LevelItem getFormat(double pixelsPerSecond) throws HistoryException {
+ private LevelItem getFormat(double secondsPerPixel) throws HistoryException {
LevelItem result = null;
for (LevelItem format : items) {
double interval = format.samplingInterval;
- if (Double.isNaN( interval ) || interval <= pixelsPerSecond) {
+ if (Double.isNaN( interval ) || interval <= secondsPerPixel) {
result = format;
} else {
break;