foundMatch = false;
for (int set = 0; set < dataSets.getDataSetCount(); set++) {
if ( flow.matches(dataSets.flows[set], options) ) {
foundMatch = true;
dataSets.getDataSet(set).add(new DataPoint(flow.timestamp, flow.length * 8));
logger.debug("Adding data to flow" + set + ": " + flow.timestamp + " " + flow.length);
}
}
if ( foundMatch == false ) {
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));
}
}
/*
if ( firstPacket ) {
startTime = flow.timestamp;