Checkpoint. Max bad/good ratio is 1:10. Unknown stats implies 50%. If
anything is in a queue, item will be taken from it (no matter what is
the service count)
diff --git a/model/fw/fw-stats.cc b/model/fw/fw-stats.cc
index 367ba14..3ff136e 100644
--- a/model/fw/fw-stats.cc
+++ b/model/fw/fw-stats.cc
@@ -222,6 +222,25 @@
super::RemoveFace (face);
}
+void
+FwStats::DidReceiveValidNack (Ptr<Face> inFace,
+ uint32_t nackCode,
+ Ptr<pit::Entry> pitEntry)
+{
+ m_stats.Satisfy (pitEntry->GetPrefix ().cut (1));
+ ScheduleRefreshingIfNecessary ();
+
+ // m_stats.UndoNewPitEntry (header->GetName ().cut (1));
+ // m_stats.UndoOutgoing (header->GetName ().cut (1), inFace);
+
+ // for (pit::Enty::in_container::iterator item = pitEntry->GetIncoming ().begin ();
+ // item != pitEntry->GetIncoming ().end ();
+ // item ++)
+ // {
+ // m_stats.UndoIncoming (header->GetName ().cut (1), item->m_face);
+ // }
+}
+
} // namespace fw
} // namespace ndn