Skip to content

Commit

Permalink
test found a legit bug. nice
Browse files Browse the repository at this point in the history
  • Loading branch information
spullara committed Jan 4, 2024
1 parent f9ec65d commit e41d20d
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public static void main(String[] args) throws IOException, ExecutionException, I
currentPosition += 3;
}
else {
temp = negative * ((bb.get(currentPosition) - '0') * 100 + ((bb.get(currentPosition + 1) - '0') * 10 + ((bb.get(currentPosition) + 3) - '0')));
temp = negative * ((bb.get(currentPosition) - '0') * 100 + ((bb.get(currentPosition + 1) - '0') * 10 + (bb.get(currentPosition + 3) - '0')));
currentPosition += 4;
}
if (bb.get(currentPosition) == '\r') {
Expand All @@ -94,8 +94,7 @@ public static void main(String[] args) throws IOException, ExecutionException, I
}).parallel().flatMap(partition -> partition.getAll().stream())
.collect(Collectors.toMap(e -> new String(e.key()), Entry::value, CalculateAverage_spullara::merge, TreeMap::new));

System.out.println(resultsMap.get("Abha"));
System.out.println("Time: " + (System.currentTimeMillis() - start) + "ms");
System.out.println(resultsMap);
}

private static List<FileSegment> getFileSegments(File file) throws IOException {
Expand Down

0 comments on commit e41d20d

Please sign in to comment.