diff options
author | Valerij Fredriksen <freva@users.noreply.github.com> | 2021-05-19 09:25:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-19 09:25:48 +0200 |
commit | bd357d9ab57b31611742e9171a298e5ee5eb6fe6 (patch) | |
tree | 5ad721320b9ed5da238895bc39f82d2813848e7f | |
parent | 2a987da6dab46ee8ff9e05a22fbf7b4343c59b20 (diff) | |
parent | 19ee8dff58603642e38e99beeb2d9e0c6bbba6e9 (diff) |
Merge pull request #17891 from vespa-engine/kkraune/locale
use US locale
-rw-r--r-- | controller-server/src/main/java/com/yahoo/vespa/hosted/controller/notification/NotificationsDb.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/notification/NotificationsDb.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/notification/NotificationsDb.java index 9fb39640833..21df0c01f0f 100644 --- a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/notification/NotificationsDb.java +++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/notification/NotificationsDb.java @@ -14,6 +14,7 @@ import java.time.Instant; import java.util.ArrayList; import java.util.Comparator; import java.util.List; +import java.util.Locale; import java.util.Optional; import java.util.stream.Collectors; import java.util.stream.Stream; @@ -149,7 +150,7 @@ public class NotificationsDb { double utilRelativeToLimit = util.get() / feedBlockLimit.get(); if (utilRelativeToLimit < 0.9) return Optional.empty(); - String message = String.format("%s (usage: %.1f%%, feed block limit: %.1f%%)", + String message = String.format(Locale.US, "%s (usage: %.1f%%, feed block limit: %.1f%%)", resource, 100 * util.get(), 100 * feedBlockLimit.get()); if (utilRelativeToLimit < 1) return Optional.of(new Pair<>(Level.warning, message)); return Optional.of(new Pair<>(Level.error, message)); |