commit | 89e688ae3d76eaaadb4bc36ab2f08e46880b81b8 | [log] [tgz] |
---|---|---|
author | Alexander Afanasyev <alexander.afanasyev@ucla.edu> | Sat May 04 15:17:49 2013 -0700 |
committer | Alexander Afanasyev <alexander.afanasyev@ucla.edu> | Sat May 04 15:17:49 2013 -0700 |
tree | db7fd8a4647209f60c9276878632d0bb915a6154 | |
parent | ce8684ff81eb88e0369a306f104b9acfe792a1f2 [diff] |
apps: Fixing bug with randomization configuration of ndn::ConsumerCbr Thanks to Junxiao Shi for reporting the bug. fixes #35
diff --git a/apps/ndn-consumer-cbr.cc b/apps/ndn-consumer-cbr.cc index 6ddedd8..431f9ba 100644 --- a/apps/ndn-consumer-cbr.cc +++ b/apps/ndn-consumer-cbr.cc
@@ -111,7 +111,7 @@ if (m_random) delete m_random; - else if (value == "uniform") + if (value == "uniform") { m_random = new UniformVariable (0.0, 2 * 1.0 / m_frequency); }