commit | 2c9933c94f04eddba532e68f2be38d14b0a5621e | [log] [tgz] |
---|---|---|
author | Ryan Wickman <rwickman@memphis.edu> | Tue Jun 12 11:51:51 2018 -0500 |
committer | Davide Pesavento <davide.pesavento@lip6.fr> | Sun Oct 14 18:26:34 2018 -0400 |
tree | bf4ec6c481976f1eefa50f443b9e9884733f9ec3 | |
parent | a8b03df84db7b50e2a244595b1696f59b62f2ce4 [diff] [blame] |
chunks: fix impossible RTT values Change-Id: Ia7386c6186362be5c50ea291a949fd40ec0224b4 Refs: #4604
diff --git a/tools/chunks/catchunks/pipeline-interests.cpp b/tools/chunks/catchunks/pipeline-interests.cpp index 68e0157..2318378 100644 --- a/tools/chunks/catchunks/pipeline-interests.cpp +++ b/tools/chunks/catchunks/pipeline-interests.cpp
@@ -79,6 +79,13 @@ doCancel(); } +bool +PipelineInterests::allSegmentsReceived() const +{ + BOOST_ASSERT(m_nReceived > 0); + return m_hasFinalBlockId && static_cast<uint64_t>(m_nReceived - 1) >= m_lastSegmentNo; +} + uint64_t PipelineInterests::getNextSegmentNo() {