Collections.sort(h, BY_OCCURENCE);
for(SiteInfo si: h) {
int pc = (100 * si.getOccurences()) / traceCount;
tt.addRow("" + si.getOccurences(), " " + pc + "%", " " + si.getHitCount(), " " + si.getSite());
}
return tt.formatTextTableUnbordered(200);
}
public String formatHisto(int limit) {
TextTable tt = new TextTable();
List<SiteInfo> h = new ArrayList<SiteInfo>(histo.values());