src: Fix first event-interval scheduling
refs: #2615, #2593
Change-Id: I17da4d9acb83299a5666159fb988c1a97220eda8
diff --git a/src/route/routing-table.cpp b/src/route/routing-table.cpp
index 371d977..343767a 100644
--- a/src/route/routing-table.cpp
+++ b/src/route/routing-table.cpp
@@ -53,10 +53,13 @@
pnlsr.getConfParameter().getRouterPrefix().toUri() + "/" + "adjacency",
std::string("adjacency"))) {
if (pnlsr.getIsBuildAdjLsaSheduled() != 1) {
- _LOG_DEBUG("CLearing old routing table .....");
+ _LOG_TRACE("Clearing old routing table");
clearRoutingTable();
// for dry run options
clearDryRoutingTable();
+
+ _LOG_DEBUG("Calculating routing table");
+
// calculate Link State routing
if ((pnlsr.getConfParameter().getHyperbolicState() == HYPERBOLIC_STATE_OFF)
|| (pnlsr.getConfParameter().getHyperbolicState() == HYPERBOLIC_STATE_DRY_RUN)) {
@@ -156,6 +159,8 @@
RoutingTable::scheduleRoutingTableCalculation(Nlsr& pnlsr)
{
if (pnlsr.getIsRouteCalculationScheduled() != true) {
+ _LOG_DEBUG("Scheduling routing table calculation in " << m_routingCalcInterval);
+
m_scheduler.scheduleEvent(m_routingCalcInterval,
ndn::bind(&RoutingTable::calculate, this, ndn::ref(pnlsr)));