bug 1514: make TimeValue usage consistent in the tutorial
authorTom Henderson <tomh@tomh.org>
Sun, 21 Oct 2012 15:48:47 -0700
changeset 9112 ede7a74e7411
parent 9111 e153cd03f531
child 9113 63eba52498e1
child 9150 6451721140bb
bug 1514: make TimeValue usage consistent in the tutorial
doc/tutorial/source/building-topologies.rst
doc/tutorial/source/conceptual-overview.rst
examples/tutorial/second.cc
examples/tutorial/third.cc
--- a/doc/tutorial/source/building-topologies.rst	Thu Oct 18 13:58:31 2012 -0400
+++ b/doc/tutorial/source/building-topologies.rst	Sun Oct 21 15:48:47 2012 -0700
@@ -267,7 +267,7 @@
 
   UdpEchoClientHelper echoClient (csmaInterfaces.GetAddress (nCsma), 9);
   echoClient.SetAttribute ("MaxPackets", UintegerValue (1));
-  echoClient.SetAttribute ("Interval", TimeValue (Seconds (1.)));
+  echoClient.SetAttribute ("Interval", TimeValue (Seconds (1.0)));
   echoClient.SetAttribute ("PacketSize", UintegerValue (1024));
 
   ApplicationContainer clientApps = echoClient.Install (p2pNodes.Get (0));
@@ -1124,7 +1124,7 @@
 
   UdpEchoClientHelper echoClient (csmaInterfaces.GetAddress (nCsma), 9);
   echoClient.SetAttribute ("MaxPackets", UintegerValue (1));
-  echoClient.SetAttribute ("Interval", TimeValue (Seconds (1.)));
+  echoClient.SetAttribute ("Interval", TimeValue (Seconds (1.0)));
   echoClient.SetAttribute ("PacketSize", UintegerValue (1024));
 
   ApplicationContainer clientApps =
--- a/doc/tutorial/source/conceptual-overview.rst	Thu Oct 18 13:58:31 2012 -0400
+++ b/doc/tutorial/source/conceptual-overview.rst	Sun Oct 21 15:48:47 2012 -0700
@@ -636,7 +636,7 @@
 
     UdpEchoClientHelper echoClient (interfaces.GetAddress (1), 9);
     echoClient.SetAttribute ("MaxPackets", UintegerValue (1));
-    echoClient.SetAttribute ("Interval", TimeValue (Seconds (1.)));
+    echoClient.SetAttribute ("Interval", TimeValue (Seconds (1.0)));
     echoClient.SetAttribute ("PacketSize", UintegerValue (1024));
 
     ApplicationContainer clientApps = echoClient.Install (nodes.Get (0));
--- a/examples/tutorial/second.cc	Thu Oct 18 13:58:31 2012 -0400
+++ b/examples/tutorial/second.cc	Sun Oct 21 15:48:47 2012 -0700
@@ -97,7 +97,7 @@
 
   UdpEchoClientHelper echoClient (csmaInterfaces.GetAddress (nCsma), 9);
   echoClient.SetAttribute ("MaxPackets", UintegerValue (1));
-  echoClient.SetAttribute ("Interval", TimeValue (Seconds (1.)));
+  echoClient.SetAttribute ("Interval", TimeValue (Seconds (1.0)));
   echoClient.SetAttribute ("PacketSize", UintegerValue (1024));
 
   ApplicationContainer clientApps = echoClient.Install (p2pNodes.Get (0));
--- a/examples/tutorial/third.cc	Thu Oct 18 13:58:31 2012 -0400
+++ b/examples/tutorial/third.cc	Sun Oct 21 15:48:47 2012 -0700
@@ -157,7 +157,7 @@
 
   UdpEchoClientHelper echoClient (csmaInterfaces.GetAddress (nCsma), 9);
   echoClient.SetAttribute ("MaxPackets", UintegerValue (1));
-  echoClient.SetAttribute ("Interval", TimeValue (Seconds (1.)));
+  echoClient.SetAttribute ("Interval", TimeValue (Seconds (1.0)));
   echoClient.SetAttribute ("PacketSize", UintegerValue (1024));
 
   ApplicationContainer clientApps =