aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-process
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2017-09-28 11:14:04 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2017-09-28 11:21:23 +0200
commit8914046411fa6a16d5f15997436e955313ab13f4 (patch)
treed2829b4ddb44cbc7000a8383f9f6e7b6d8fef18b /server/sonar-process
parenta0c5aec5be9cb64b14461af4f2e4bc366b8e5ccc (diff)
downloadsonarqube-8914046411fa6a16d5f15997436e955313ab13f4.tar.gz
sonarqube-8914046411fa6a16d5f15997436e955313ab13f4.zip
Fix Quality flaws
Diffstat (limited to 'server/sonar-process')
-rw-r--r--server/sonar-process/src/main/java/org/sonar/process/systeminfo/JvmStateSection.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/sonar-process/src/main/java/org/sonar/process/systeminfo/JvmStateSection.java b/server/sonar-process/src/main/java/org/sonar/process/systeminfo/JvmStateSection.java
index b5cf9c90f46..0c58e306455 100644
--- a/server/sonar-process/src/main/java/org/sonar/process/systeminfo/JvmStateSection.java
+++ b/server/sonar-process/src/main/java/org/sonar/process/systeminfo/JvmStateSection.java
@@ -24,6 +24,7 @@ import java.lang.management.MemoryMXBean;
import java.lang.management.MemoryUsage;
import java.lang.management.OperatingSystemMXBean;
import java.lang.management.ThreadMXBean;
+import java.util.Locale;
import org.sonar.process.systeminfo.protobuf.ProtobufSystemInfo;
import static java.lang.String.format;
@@ -62,7 +63,7 @@ public class JvmStateSection implements SystemInfoSection {
addAttributeInMb(protobuf, "Non Heap Max (MB)", nonHeap.getMax());
addAttributeInMb(protobuf, "Non Heap Used (MB)", nonHeap.getUsed());
OperatingSystemMXBean os = ManagementFactory.getOperatingSystemMXBean();
- setAttribute(protobuf,"System Load Average", format("%.1f%% (last minute)", os.getSystemLoadAverage() * 100.0));
+ setAttribute(protobuf,"System Load Average", format(Locale.ENGLISH, "%.1f%% (last minute)", os.getSystemLoadAverage() * 100.0));
ThreadMXBean thread = ManagementFactory.getThreadMXBean();
setAttribute(protobuf, "Threads", thread.getThreadCount());