Produce zero count bin only if we had any input before

This commit is contained in:
Dominik Werder
2025-05-29 06:40:39 +02:00
parent a3bcedfc38
commit cd258b1e21

View File

@@ -73,7 +73,7 @@ where
}
fn maybe_emit_active(&mut self) {
if self.cnt != 0 || self.produce_cnt_zero {
if self.cnt != 0 || self.produce_cnt_zero && self.min.is_some() {
let ts1 = self.active_beg;
let ts2 = self.active_end;
let cnt = self.cnt;