summaryrefslogtreecommitdiffstats
path: root/configd/src/apps/sentinel/metrics.h
diff options
context:
space:
mode:
Diffstat (limited to 'configd/src/apps/sentinel/metrics.h')
-rw-r--r--configd/src/apps/sentinel/metrics.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/configd/src/apps/sentinel/metrics.h b/configd/src/apps/sentinel/metrics.h
index 2263d70fb60..365b7cc2ecf 100644
--- a/configd/src/apps/sentinel/metrics.h
+++ b/configd/src/apps/sentinel/metrics.h
@@ -1,8 +1,8 @@
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
-#include <sys/time.h>
#include <vespa/vespalib/metrics/simple_metrics.h>
+#include <vespa/vespalib/util/time.h>
namespace config::sentinel {
@@ -15,7 +15,7 @@ struct StartMetrics {
vespalib::metrics::Producer producer;
unsigned long currentlyRunningServices;
unsigned long totalRestartsCounter;
- long startedTime;
+ vespalib::steady_time startedTime;
Counter sentinel_restarts;
Gauge sentinel_totalRestarts;
Gauge sentinel_running;