From 15511d1af2bb79a5ae38a81c2c4b24ebc6041e41 Mon Sep 17 00:00:00 2001 From: Gunnar Morling Date: Sun, 7 Jan 2024 09:40:09 +0100 Subject: [PATCH] Infra --- process_output.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/process_output.java b/process_output.java index 655b514..c099df8 100644 --- a/process_output.java +++ b/process_output.java @@ -81,7 +81,7 @@ public class process_output { .collect(Collectors.toList()); var mean = evaluated.get(0).plus(evaluated.get(1)).plus(evaluated.get(2)).dividedBy(3); - var result = String.format("%02d:%02d.%03d", mean.toMinutesPart(), mean.toSecondsPart(), mean.toMillisPart()); + var result = String.format("%02d:%02d.%.0f", mean.toMinutesPart(), mean.toSecondsPart(), (double) mean.toNanosPart() / 1_000_000); var author = actualFile.replace(".out", ""); System.out.println(String.format("\n| | %s| [link](https://github.com/gunnarmorling/1brc/blob/main/src/main/java/dev/morling/onebrc/CalculateAverage_%s.java)| 21.0.1-open | [%s](https://github.com/%s)|", result, author, author, author));