build: Fixes and disabling PyNDN unless specifically requested
diff --git a/model/fib/ndn-fib-entry.cc b/model/fib/ndn-fib-entry.cc
index 229557c..f05140e 100644
--- a/model/fib/ndn-fib-entry.cc
+++ b/model/fib/ndn-fib-entry.cc
@@ -67,8 +67,8 @@
}
else
{
- m_rttVar = Time ((1 - NDN_RTO_BETA) * m_rttVar + NDN_RTO_BETA * Abs(m_sRtt - rttSample));
- m_sRtt = Time ((1 - NDN_RTO_ALPHA) * m_sRtt + NDN_RTO_ALPHA * rttSample);
+ m_rttVar = Time ((1 - NDN_RTO_BETA) * m_rttVar + 1.0 * NDN_RTO_BETA * Abs(m_sRtt - rttSample));
+ m_sRtt = Time ((1 - NDN_RTO_ALPHA) * m_sRtt + 1.0 * NDN_RTO_ALPHA * rttSample);
}
}
diff --git a/wscript b/wscript
index 0301b35..72a7d3e 100644
--- a/wscript
+++ b/wscript
@@ -227,10 +227,6 @@
source = bld.path.ant_glob (["PyNDN/**/*.py"]),
install_from = "PyNDN",
install_path = bld.env['PyNDN_install_path'])
- else:
- bld (features = "py",
- source = bld.path.ant_glob (["PyNDN/**/*.py"]),
- install_from = ".")
@TaskGen.feature('ns3fullmoduleheaders')
@TaskGen.after_method('process_rule')
@@ -258,4 +254,3 @@
task.set_outputs([dst_node])
else:
task.header_to_remove = dst_node
-