src: Adding retry in case of prefix registration fails
Change-Id: Ia124ab393c665b29f03216903128de98bd68de9d
diff --git a/src/route/nexthop.hpp b/src/route/nexthop.hpp
index ecd84fa..a354752 100644
--- a/src/route/nexthop.hpp
+++ b/src/route/nexthop.hpp
@@ -24,6 +24,7 @@
#define NLSR_NEXTHOP_HPP
#include <iostream>
+#include <cmath>
#include <boost/cstdint.hpp>
namespace nlsr {
@@ -54,10 +55,11 @@
m_connectingFaceUri = cfu;
}
- double
+ uint64_t
getRouteCost() const
{
- return m_routeCost;
+ uint64_t routeCost = static_cast<uint64_t>(ceil(m_routeCost));
+ return routeCost;
}
void