diff --git a/src/api/stats.cpp b/src/api/stats.cpp index 80abc26a..6c3e0a57 100644 --- a/src/api/stats.cpp +++ b/src/api/stats.cpp @@ -829,11 +829,11 @@ void MetricDataSum::sum(MetricData &data, bool initial) { auto *shape = pjs::Str::make(e->shape)->retain(); auto &ent = m_entry_map[name]; - if (!ent || (initial && ( + if (!ent || ent->type != type || ent->shape != shape || ent->dimensions != e->dimensions - ))) { + ) { if (!ent) { ent = new Entry; m_entries.push(ent);