summaryrefslogtreecommitdiffstats
path: root/metrics
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@online.no>2023-03-05 17:27:16 +0100
committerTor Egge <Tor.Egge@online.no>2023-03-05 17:27:16 +0100
commitd5c70195f0c6533ae9db1d2f0f5c80777d123c05 (patch)
tree9a635c21a437d86cb9f766a61b53fab8ff165cde /metrics
parentcbdce1cc7d96f4eced79a8d4a50b71fa1dcd831e (diff)
Fix format string.
Diffstat (limited to 'metrics')
-rw-r--r--metrics/src/vespa/metrics/metricmanager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/metrics/src/vespa/metrics/metricmanager.cpp b/metrics/src/vespa/metrics/metricmanager.cpp
index 7fc8222c703..606b97bda73 100644
--- a/metrics/src/vespa/metrics/metricmanager.cpp
+++ b/metrics/src/vespa/metrics/metricmanager.cpp
@@ -11,6 +11,7 @@
#include <vespa/vespalib/util/time.h>
#include <vespa/vespalib/stllike/asciistream.h>
#include <vespa/config/subscription/configsubscriber.hpp>
+#include <cinttypes>
#include <set>
#include <sstream>
#include <cassert>
@@ -639,7 +640,7 @@ MetricManager::updatePeriodicMetrics(const MetricLockGuard & guard, time_point u
hook->updateMetrics(guard);
if (hook->expired(updateTime - hook->getPeriod())) {
if (hook->has_valid_expiry()) {
- LOG(debug, "Updated hook %s at time %s, but next run in %ld seconds have already passed as "
+ LOG(debug, "Updated hook %s at time %s, but next run in %" PRId64 " seconds have already passed as "
"time is %s. Bumping next call to current time + period.",
hook->getName(), to_string(hook->getNextCall()).c_str(),
count_s(hook->getPeriod()), to_string(updateTime).c_str());