diff options
Diffstat (limited to 'metrics')
-rw-r--r-- | metrics/src/vespa/metrics/metricsnapshot.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/metrics/src/vespa/metrics/metricsnapshot.h b/metrics/src/vespa/metrics/metricsnapshot.h index 859ee4a4a97..ae0fd92d187 100644 --- a/metrics/src/vespa/metrics/metricsnapshot.h +++ b/metrics/src/vespa/metrics/metricsnapshot.h @@ -94,9 +94,7 @@ public: MetricSnapshot& getSnapshot(bool temporary) { return *((temporary && _count > 1) ? _building : _current); } - const MetricSnapshot& getSnapshot() const { - return getSnapshot(false); - } + const MetricSnapshot& getSnapshot(bool temporary) const { return *((temporary && _count > 1) ? _building : _current); } |