aboutsummaryrefslogtreecommitdiffstats
path: root/zkfacade
diff options
context:
space:
mode:
authorHåkon Hallingstad <hakon@verizonmedia.com>2020-12-02 13:50:21 +0100
committerHåkon Hallingstad <hakon@verizonmedia.com>2020-12-02 13:50:21 +0100
commitf1e118db26efb6cfb16397e7997f441ba74382ea (patch)
tree53fe01281619ab1f86699705e82033a35bd88a3a /zkfacade
parentf453ae5a89d9c5a4cd5926f8443a0acd564cbc86 (diff)
Simplify symlink
The symlink points to a file in the same directory. Therefore, instead of pointing to the absolute path, it should point to the filename. This also makes the symlink work on the host, if the symlink was made in a container (and vice versa).
Diffstat (limited to 'zkfacade')
-rw-r--r--zkfacade/src/main/java/com/yahoo/vespa/curator/stats/LatencyMetrics.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/zkfacade/src/main/java/com/yahoo/vespa/curator/stats/LatencyMetrics.java b/zkfacade/src/main/java/com/yahoo/vespa/curator/stats/LatencyMetrics.java
index 22af158faa9..3bfb1fca4d9 100644
--- a/zkfacade/src/main/java/com/yahoo/vespa/curator/stats/LatencyMetrics.java
+++ b/zkfacade/src/main/java/com/yahoo/vespa/curator/stats/LatencyMetrics.java
@@ -77,6 +77,6 @@ public class LatencyMetrics {
'}';
}
- private double secondsWithMillis(Duration duration) { return round(duration.toMillis()) / 1000.0; }
+ private double secondsWithMillis(Duration duration) { return duration.toMillis() / 1000.0; }
private double roundTo3DecimalPlaces(double value) { return round(value * 1000) / 1000.0; }
}