Showing
1 changed file
with
3 additions
and
1 deletions
... | @@ -12,6 +12,7 @@ import org.springframework.stereotype.Component; | ... | @@ -12,6 +12,7 @@ import org.springframework.stereotype.Component; |
12 | 12 | ||
13 | import java.io.*; | 13 | import java.io.*; |
14 | import java.util.List; | 14 | import java.util.List; |
15 | +import java.util.Locale; | ||
15 | import java.util.Properties; | 16 | import java.util.Properties; |
16 | import java.util.Set; | 17 | import java.util.Set; |
17 | import java.util.stream.Collectors; | 18 | import java.util.stream.Collectors; |
... | @@ -61,7 +62,8 @@ public class PostprocessingRunner implements ApplicationRunner { | ... | @@ -61,7 +62,8 @@ public class PostprocessingRunner implements ApplicationRunner { |
61 | try { | 62 | try { |
62 | CSVPrinter csvPrinter = new CSVPrinter(new FileWriter(new File(dataDir, coverageFilename)), | 63 | CSVPrinter csvPrinter = new CSVPrinter(new FileWriter(new File(dataDir, coverageFilename)), |
63 | CSVFormat.TDF.withHeader("c1 (item)", "c2 (item-user)", "c3 (item#)")); | 64 | CSVFormat.TDF.withHeader("c1 (item)", "c2 (item-user)", "c3 (item#)")); |
64 | - csvPrinter.printRecord(coverage.getC1(), coverage.getC2(), coverage.getC3()); | 65 | + csvPrinter.printRecord(String.format(Locale.FRENCH, "%.3f", coverage.getC1()), |
66 | + String.format(Locale.FRENCH, "%.3f", coverage.getC2()), coverage.getC3()); | ||
65 | csvPrinter.close(); | 67 | csvPrinter.close(); |
66 | } catch (IOException e) { | 68 | } catch (IOException e) { |
67 | throw new PostprocessingException("Can't write coverage file " + dataDir + coverageFilename, e); | 69 | throw new PostprocessingException("Can't write coverage file " + dataDir + coverageFilename, e); | ... | ... |
-
Please register or login to post a comment