examples/wireless/wifi-blockack.cc
changeset 8997 9222fc5291ca
parent 6865 220373544a6c
--- a/examples/wireless/wifi-blockack.cc	Mon Aug 20 14:25:35 2012 -0700
+++ b/examples/wireless/wifi-blockack.cc	Mon Aug 20 19:08:45 2012 -0700
@@ -121,8 +121,8 @@
   DataRate dataRate ("1Mb/s");
   OnOffHelper onOff ("ns3::UdpSocketFactory", Address (InetSocketAddress (apIf.GetAddress (0), port)));
   onOff.SetAttribute ("DataRate", DataRateValue (dataRate));
-  onOff.SetAttribute ("OnTime", RandomVariableValue (ConstantVariable (0.01)));
-  onOff.SetAttribute ("OffTime", RandomVariableValue (ConstantVariable (8)));
+  onOff.SetAttribute ("OnTime", StringValue ("ns3::ConstantRandomVariable[Constant=0.01]"));
+  onOff.SetAttribute ("OffTime", StringValue ("ns3::ConstantRandomVariable[Constant=8]"));
   onOff.SetAttribute ("PacketSize", UintegerValue (50));
 
   ApplicationContainer staApps = onOff.Install (sta);