} else {
realRowName = rowName + " (failure)";
rowAggName = labelAggFailure;
}
AbstractGraphRow row = model.get(realRowName);
AbstractGraphRow rowAgg = modelAggregate.get(rowAggName);
if (row == null) {
row = getNewRow(model, AbstractGraphRow.ROW_SUM_VALUES, realRowName, AbstractGraphRow.MARKER_SIZE_SMALL, false, false, false, true, true);
}
if (rowAgg == null) {
rowAgg = getNewRow(modelAggregate, AbstractGraphRow.ROW_SUM_VALUES, rowAggName, AbstractGraphRow.MARKER_SIZE_SMALL, false, false, false, true, isSuccess ? Color.GREEN : Color.RED, true);
}
//fix to have trans/sec values in all cases
if (getGranulation() > 0) {
double tps = count * 1000.0 / getGranulation();
row.add(time, tps);
rowAgg.add(time, tps);
//always add 0 to agg failure row
if (isSuccess) {
rowAgg = modelAggregate.get(labelAggFailure);
if (rowAgg == null) {
rowAgg = getNewRow(modelAggregate, AbstractGraphRow.ROW_SUM_VALUES, labelAggFailure, AbstractGraphRow.MARKER_SIZE_SMALL, false, false, false, true, Color.RED, true);
}
rowAgg.add(time, 0);
}
}
}