Skip to content

Commit e7dd25f

Browse files
authored
Merge pull request #18 from flentini/fix/zerocount-summary-stat
set zeroCount stat when merging sketches
2 parents 7d120af + 10624f0 commit e7dd25f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ddsketch/DDSketch.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ class BaseDDSketch {
148148
this.store.merge(sketch.store);
149149

150150
/* Merge summary stats */
151+
this.zeroCount += sketch.zeroCount;
151152
this.count += sketch.count;
152153
this.sum += sketch.sum;
153154
if (sketch.min < this.min) {

0 commit comments

Comments
 (0)