Skip to content

Commit ad3fdbb

Browse files
committed
Clear m_singleBucketValue when expanding to array.
1 parent 0f52fc3 commit ad3fdbb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/TraceEvent/Stacks/Histogram.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ public void AddMetric(float metric, int bucket)
6868
m_buckets[m_singleBucketNum] = m_singleBucketValue;
6969
// Clear the single bucket tracking since we're now using the array
7070
m_singleBucketNum = -1;
71+
m_singleBucketValue = 0;
7172
}
7273
m_buckets[bucket] += metric;
7374
}

0 commit comments

Comments
 (0)