bug 1133: fix DSDV GetSettlingTime

This commit is contained in:
Tommaso Pecorella committed 2011-05-10 00:07:19 +02:00
1 parent 0ffc43759d
commit 0dc5113b4a
1 file changed
+2 -2
+2 -2
View File
@@ -1138,8 +1138,8 @@ RoutingProtocol::GetSettlingTime (Ipv4Address address)
{
NS_LOG_DEBUG ("Route SettlingTime: " << mainrt.GetSettlingTime ().GetSeconds ()
<< " and LifeTime:" << mainrt.GetLifeTime ().GetSeconds ());
weightedTime = Time ((m_weightedFactor * mainrt.GetSettlingTime () + 1.0 - m_weightedFactor)
* mainrt.GetLifeTime ());
weightedTime = Time (m_weightedFactor * mainrt.GetSettlingTime ().GetSeconds() + (1.0 - m_weightedFactor)
* mainrt.GetLifeTime ().GetSeconds());
NS_LOG_DEBUG ("Calculated weightedTime:" << weightedTime.GetSeconds ());
return weightedTime;
}