summaryrefslogtreecommitdiffstats
path: root/node-repository
diff options
context:
space:
mode:
authorHåkon Hallingstad <hakon@oath.com>2017-10-23 13:57:56 +0200
committerHåkon Hallingstad <hakon@oath.com>2017-10-23 13:57:56 +0200
commitf120b75db96f27abafc16b2653f88439777cfc32 (patch)
treead4f655dee9c5af9d01f9e5e9a1f7145aca75733 /node-repository
parent14b2a71a72796ae099078312d8ce096606ab3c93 (diff)
Correct to currentRestartGeneration
Diffstat (limited to 'node-repository')
-rw-r--r--node-repository/src/main/java/com/yahoo/vespa/hosted/provision/maintenance/MetricsReporter.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/maintenance/MetricsReporter.java b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/maintenance/MetricsReporter.java
index 3ac5b496f56..4432ba89527 100644
--- a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/maintenance/MetricsReporter.java
+++ b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/maintenance/MetricsReporter.java
@@ -70,7 +70,7 @@ public class MetricsReporter extends Maintainer {
long wantedRestartGeneration = allocation.get().restartGeneration().wanted();
metric.set("wantedRestartGeneration", wantedRestartGeneration, context);
- long currentRestartGeneration = allocation.get().restartGeneration().wanted();
+ long currentRestartGeneration = allocation.get().restartGeneration().current();
metric.set("currentRestartGeneration", currentRestartGeneration, context);
boolean wantToRestart = currentRestartGeneration < wantedRestartGeneration;
metric.set("wantToRestart", wantToRestart ? 1 : 0, context);