[ndnSIM] fw: Add signals to monitor Hits/Misses of the CS
Change-Id: Ifde5ce3311716ffa1aecc7312704328ac0447ae7
diff --git a/daemon/fw/forwarder.cpp b/daemon/fw/forwarder.cpp
index 723837a..35a8f55 100644
--- a/daemon/fw/forwarder.cpp
+++ b/daemon/fw/forwarder.cpp
@@ -192,6 +192,7 @@
{
NFD_LOG_DEBUG("onContentStoreMiss interest=" << interest.getName());
++m_counters.nCsMisses;
+ afterCsMiss(interest);
// attach HopLimit if configured and not present in Interest
if (m_config.defaultHopLimit > 0 && !interest.getHopLimit()) {
@@ -235,6 +236,7 @@
{
NFD_LOG_DEBUG("onContentStoreHit interest=" << interest.getName());
++m_counters.nCsHits;
+ afterCsHit(interest, data);
data.setTag(make_shared<lp::IncomingFaceIdTag>(face::FACEID_CONTENT_STORE));
data.setTag(interest.getTag<lp::PitToken>());