Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/main/java/SummarizeHistogramLogs.java
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public void run()

private void summarizeAndPrint() throws FileNotFoundException
{
Map<String, Histogram> sumByTag = new HashMap<>();
Map<String, Histogram> sumByTag = new TreeMap<>();

long period = 0;
long intervalLengthSum = 0;
Expand Down Expand Up @@ -228,13 +228,13 @@ private void summarizeAndPrint() throws FileNotFoundException
}
}
}

private boolean shouldSkipTag(String ntag)
{
ntag = (ntag == null) ? "default" : ntag;
return excludeTags.contains(ntag) || (!includeTags.isEmpty() && !includeTags.contains(ntag));
}

private PrintStream getOut(String tag) throws FileNotFoundException
{
PrintStream report = System.out;
Expand Down Expand Up @@ -285,7 +285,7 @@ private void printCsv(PrintStream out, Histogram sum)
out.println(count);
}
}

private void printCsvE(PrintStream out, Histogram sum)
{
long max = (long) (sum.getMaxValue() / outputValueUnitRatio);
Expand Down