From 23a3e5f7514a6463e12492715225e22c5d088201 Mon Sep 17 00:00:00 2001 From: Chris Hood Date: Mon, 19 May 2014 21:34:20 +0200 Subject: [PATCH] Bug 1915 - BRITE channel delay is rounded to an integer --- RELEASE_NOTES | 2 ++ src/brite/helper/brite-topology-helper.cc | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/RELEASE_NOTES b/RELEASE_NOTES index b7c3a9418..03ec06c34 100644 --- a/RELEASE_NOTES +++ b/RELEASE_NOTES @@ -88,6 +88,8 @@ Bugs fixed - Bug 1894 - CqaFfMacScheduler needs an update - Bug 1895 - IP header Source Address changed while forwarding RREQ - Bug 1903 - Namespace usage in olsr-state.cc/h +- Bug 1903 - Namespace usage in olsr-state.cc/h +- Bug 1915 - BRITE channel delay is rounded to an integer Release 3.19 ============= diff --git a/src/brite/helper/brite-topology-helper.cc b/src/brite/helper/brite-topology-helper.cc index 347f7635c..96c588d4f 100644 --- a/src/brite/helper/brite-topology-helper.cc +++ b/src/brite/helper/brite-topology-helper.cc @@ -456,7 +456,7 @@ BriteTopologyHelper::ConstructTopology () // Set the link delay // The brite value for delay is given in milliseconds m_britePointToPointHelper.SetChannelAttribute ("Delay", - TimeValue (MilliSeconds ((*it).delay))); + TimeValue (Seconds ((*it).delay/1000.0))); // The brite value for data rate is given in Mbps m_britePointToPointHelper.SetDeviceAttribute ("DataRate",