summaryrefslogtreecommitdiffstats
path: root/clustercontroller-core/src/main
diff options
context:
space:
mode:
authorKristian Aune <kraune@verizonmedia.com>2021-03-19 10:10:25 +0100
committerKristian Aune <kraune@verizonmedia.com>2021-03-19 10:10:25 +0100
commit11c35ba25cea323896c9068b9781cf1e60be1d10 (patch)
tree6516f29e033a25648e9c80c44a20fbe026125a2b /clustercontroller-core/src/main
parent2dbcab338e1289d45eca0007f43c4324f028b25f (diff)
use US locale
Diffstat (limited to 'clustercontroller-core/src/main')
-rw-r--r--clustercontroller-core/src/main/java/com/yahoo/vespa/clustercontroller/core/NodeResourceExhaustion.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/clustercontroller-core/src/main/java/com/yahoo/vespa/clustercontroller/core/NodeResourceExhaustion.java b/clustercontroller-core/src/main/java/com/yahoo/vespa/clustercontroller/core/NodeResourceExhaustion.java
index 8d0a873a801..531e29344a6 100644
--- a/clustercontroller-core/src/main/java/com/yahoo/vespa/clustercontroller/core/NodeResourceExhaustion.java
+++ b/clustercontroller-core/src/main/java/com/yahoo/vespa/clustercontroller/core/NodeResourceExhaustion.java
@@ -5,6 +5,7 @@ import com.yahoo.jrt.Spec;
import com.yahoo.vdslib.state.Node;
import com.yahoo.vespa.clustercontroller.core.hostinfo.ResourceUsage;
+import java.util.Locale;
import java.util.Objects;
/**
@@ -46,22 +47,22 @@ public class NodeResourceExhaustion {
}
public String toExhaustionAddedDescription() {
- return String.format("%s (%.3g > %.3g)", makeDescriptionPrefix(), resourceUsage.getUsage(), limit);
+ return String.format(Locale.US, "%s (%.3g > %.3g)", makeDescriptionPrefix(), resourceUsage.getUsage(), limit);
}
public String toExhaustionRemovedDescription() {
- return String.format("%s (<= %.3g)", makeDescriptionPrefix(), limit);
+ return String.format(Locale.US, "%s (<= %.3g)", makeDescriptionPrefix(), limit);
}
public String toShorthandDescription() {
- return String.format("%s%s %.3g > %.3g",
+ return String.format(Locale.US, "%s%s %.3g > %.3g",
resourceType,
(resourceUsage.getName() != null ? ":" + resourceUsage.getName() : ""),
resourceUsage.getUsage(), limit);
}
private String makeDescriptionPrefix() {
- return String.format("%s%s on node %d [%s]",
+ return String.format(Locale.US, "%s%s on node %d [%s]",
resourceType,
(resourceUsage.getName() != null ? ":" + resourceUsage.getName() : ""),
node.getIndex(),