temporaryFlows = new Flow[dataSets.getDataSetCount() + 1];
System.arraycopy(dataSets.flows, 0, temporaryFlows, 0, dataSets.getDataSetCount());
dataSets.flows = temporaryFlows;
dataSets.flows[dataSets.getDataSetCount()] = flow;
logger.debug("Adding new data set " + flow.printable(options));
dataSets.addSet(flow.printable(options));
dataSets.getDataSet(dataSets.getDataSetCount() - 1).add(new DataPoint(flow.timestamp, flow.length * 8));
}
}
/*