commit | e9c69855c41eaec6dbd294183b0de78bc4fa7126 | [log] [tgz] |
---|---|---|
author | Davide Pesavento <davide.pesavento@lip6.fr> | Sat Nov 04 18:08:37 2017 -0400 |
committer | Davide Pesavento <davide.pesavento@lip6.fr> | Sat Nov 04 20:24:08 2017 -0400 |
tree | aa28569aba7b36a8c7a55e384603658757e4fc7f | |
parent | b587cfd7795f86e1db2ec67ba1b4ab51a21344a7 [diff] [blame] |
chunks: consolidate accounting of received data into onData() Change-Id: Ib47381d3f69b482d60af8b07d002135944b17604
diff --git a/tools/chunks/catchunks/pipeline-interests-fixed-window.cpp b/tools/chunks/catchunks/pipeline-interests-fixed-window.cpp index b81ec97..40a4417 100644 --- a/tools/chunks/catchunks/pipeline-interests-fixed-window.cpp +++ b/tools/chunks/catchunks/pipeline-interests-fixed-window.cpp
@@ -119,10 +119,7 @@ if (m_options.isVerbose) std::cerr << "Received segment #" << getSegmentFromPacket(data) << std::endl; - m_nReceived++; - m_receivedSize += data.getContent().value_size(); - - onData(interest, data); + onData(data); if (!m_hasFinalBlockId && !data.getFinalBlockId().empty()) { m_lastSegmentNo = data.getFinalBlockId().toSegment();