Skip to content

Commit

Permalink
Ignore 0 values in bitmapfreqfreq response
Browse files Browse the repository at this point in the history
  • Loading branch information
mkavanagh committed Aug 7, 2020
1 parent 126be11 commit 02436fa
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,10 @@ public Object getMergedResult() {

int[] lowFrequencies = result.decode();
for (int i = 0; i < lowFrequencies.length; i++) {
map.put(i, lowFrequencies[i]);
int value = lowFrequencies[i];
if (value > 0) {
map.put(i, value);
}
}

result.getOverflow()
Expand Down

0 comments on commit 02436fa

Please sign in to comment.