aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--metrics/src/vespa/metrics/valuemetric.h2
-rw-r--r--storage/src/vespa/storage/persistence/filestorage/filestorhandlerimpl.cpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/metrics/src/vespa/metrics/valuemetric.h b/metrics/src/vespa/metrics/valuemetric.h
index f25f9006da7..3a9e90be721 100644
--- a/metrics/src/vespa/metrics/valuemetric.h
+++ b/metrics/src/vespa/metrics/valuemetric.h
@@ -126,6 +126,8 @@ public:
AvgVal getMinimum() const { return _values.getValues()._min; }
AvgVal getMaximum() const { return _values.getValues()._max; }
AvgVal getCount() const { return _values.getValues()._count; }
+ TotVal getTotal() const { return _values.getValues()._total; }
+
AvgVal getLast() const { return _values.getValues()._last; }
void reset() override { _values.reset(); }
diff --git a/storage/src/vespa/storage/persistence/filestorage/filestorhandlerimpl.cpp b/storage/src/vespa/storage/persistence/filestorage/filestorhandlerimpl.cpp
index a9030007c50..e87eabd19df 100644
--- a/storage/src/vespa/storage/persistence/filestorage/filestorhandlerimpl.cpp
+++ b/storage/src/vespa/storage/persistence/filestorage/filestorhandlerimpl.cpp
@@ -296,7 +296,7 @@ FileStorHandlerImpl::updateMetrics(const MetricLockGuard &)
metrics::LoadType loadType(entry.first, "ignored");
for (const auto & stripe : disk.metrics->stripes) {
const auto & m = stripe->averageQueueWaitingTime[loadType];
- entry.second->addAvgValueWithCount(m.getAverage(), m.getCount());
+ entry.second->addTotalValueWithCount(m.getTotal(), m.getCount());
}
}
}