mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[performance tests] don't use printf to log values
`printf` uses a locale to print values. double value is rendered as `0,1234` in the German locale. And TeamCity fails to parse such a presentation back to double. GitOrigin-RevId: 7bc8d9e65a09eef69e77cb0ee5fbb48be3713762
This commit is contained in:
committed by
intellij-monorepo-bot
parent
1d659c8cac
commit
84a1e92483
@@ -150,16 +150,14 @@ public class Timer {
|
||||
@SuppressWarnings("UseOfSystemOutOrSystemErr")
|
||||
private static void logValue(String key, long value) {
|
||||
if (value >= 0L) {
|
||||
System.out.printf("##teamcity[buildStatisticValue key='%s' value='%d']", key, value);
|
||||
System.out.println();
|
||||
System.out.println("##teamcity[buildStatisticValue key='" + key + "' value='" + value + "']");
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("UseOfSystemOutOrSystemErr")
|
||||
private static void logValue(String key, double value) {
|
||||
if (value >= 0L) {
|
||||
System.out.printf("##teamcity[buildStatisticValue key='%s' value='%f']", key, value);
|
||||
System.out.println();
|
||||
System.out.println("##teamcity[buildStatisticValue key='"+ key + "' value='" + value + "']");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user