diff --git a/vespajlib/src/main/java/com/yahoo/concurrent/maintenance/Maintainer.java b/vespajlib/src/main/java/com/yahoo/concurrent/maintenance/Maintainer.java index 842fbf7795ff..8dbca0bfccde 100644 --- a/vespajlib/src/main/java/com/yahoo/concurrent/maintenance/Maintainer.java +++ b/vespajlib/src/main/java/com/yahoo/concurrent/maintenance/Maintainer.java @@ -164,9 +164,7 @@ Duration staggeredDelay(Duration interval, String hostname, List cluster Instant now = clock.instant(); long nodeOffset = clusterHostnames.indexOf(hostname) * interval.toMillis() / clusterHostnames.size(); - String c = getClass().getName(); - System.out.println("class=" + c); - long maintainerOffset = c.hashCode() % interval.toMillis(); + long maintainerOffset = getClass().getName().hashCode() % interval.toMillis(); long totalOffset = nodeOffset + maintainerOffset; return Duration.ofMillis(Math.floorMod(totalOffset - now.toEpochMilli(), interval.toMillis())); }