summaryrefslogtreecommitdiffstats
path: root/metrics/src/tests/snapshottest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'metrics/src/tests/snapshottest.cpp')
-rw-r--r--metrics/src/tests/snapshottest.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/metrics/src/tests/snapshottest.cpp b/metrics/src/tests/snapshottest.cpp
index 4d2ea96c36d..52bcaf600ca 100644
--- a/metrics/src/tests/snapshottest.cpp
+++ b/metrics/src/tests/snapshottest.cpp
@@ -4,7 +4,6 @@
#include <vespa/metrics/metrics.h>
#include <vespa/metrics/summetric.hpp>
#include <vespa/vespalib/gtest/gtest.h>
-#include <vespa/vespalib/util/size_literals.h>
namespace metrics {
@@ -166,8 +165,8 @@ void ASSERT_VALUE(int32_t value, const MetricSnapshot & snapshot, const char *na
}
struct SnapshotTest : public ::testing::Test {
- time_t tick(MetricManager& mgr, time_t currentTime) {
- return mgr.tick(mgr.getMetricLock(), currentTime);
+ void tick(MetricManager& mgr, time_t currentTime) {
+ mgr.tick(mgr.getMetricLock(), time_point(vespalib::from_s(currentTime)));
}
};