bug 1133: fix DSDV GetSettlingTime
This commit is contained in:
1 parent
0ffc43759d
commit
0dc5113b4a
1 file changed
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user