Fix merge

This commit is contained in:
asonix 2022-11-19 18:57:34 -06:00
parent 9a9d09c0c4
commit 4e1a782bea

View file

@ -136,7 +136,8 @@ impl MergeCounter {
labels: start.labels, labels: start.labels,
value: start.value.saturating_sub(end.value), value: start.value.saturating_sub(end.value),
}), }),
(Some(only), None) | (None, Some(only)) => Some(Counter { (Some(only), None) => Some(only),
(None, Some(only)) => Some(Counter {
labels: only.labels, labels: only.labels,
value: 0, value: 0,
}), }),