diff options
author | Kristian Aune <kraune@verizonmedia.com> | 2021-05-19 09:23:29 +0200 |
---|---|---|
committer | Kristian Aune <kraune@verizonmedia.com> | 2021-05-19 09:23:29 +0200 |
commit | 19ee8dff58603642e38e99beeb2d9e0c6bbba6e9 (patch) | |
tree | 5ad721320b9ed5da238895bc39f82d2813848e7f /controller-server | |
parent | 2a987da6dab46ee8ff9e05a22fbf7b4343c59b20 (diff) |
use US locale
Diffstat (limited to 'controller-server')
-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)); |