only add non zeor values
This commit is contained in:
@@ -56,8 +56,10 @@ public class ScatterAggregator implements CustomAggregator {
|
||||
public void addValue(final long epochMilli, final long value) {
|
||||
final long roundedEpochMilli = epochMilli - epochMilli % epochMillisPerPixel;
|
||||
final long roundedValue = value - value % valuesPerPixel;
|
||||
if (roundedEpochMilli > 0 && roundedValue >= 0) {
|
||||
matrix2d.put(roundedEpochMilli, roundedValue, 1);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public AggregatedData getAggregatedData() {
|
||||
|
||||
Reference in New Issue
Block a user