int min = (int) (current % (60));
Segment segment = report.findOrCreateSegment(min);
Index index = segment.findOrCreateIndex(type);
if (!t.getStatus().equals(Transaction.SUCCESS)) {
index.incErrorCount();
}
index.incTotalCount();
index.setSum(index.getSum() + t.getDurationInMillis());
index.setAvg(index.getSum() / index.getTotalCount());
}