From 38f973aa5c1911e413dd9182086bddd79197f153 Mon Sep 17 00:00:00 2001 From: Tom Henderson Date: Sun, 21 Oct 2012 15:48:47 -0700 Subject: [PATCH] bug 1514: make TimeValue usage consistent in the tutorial --- doc/tutorial/source/building-topologies.rst | 4 ++-- doc/tutorial/source/conceptual-overview.rst | 2 +- examples/tutorial/second.cc | 2 +- examples/tutorial/third.cc | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/tutorial/source/building-topologies.rst b/doc/tutorial/source/building-topologies.rst index 0132ebcba..944ef422d 100644 --- a/doc/tutorial/source/building-topologies.rst +++ b/doc/tutorial/source/building-topologies.rst @@ -267,7 +267,7 @@ leftmost point-to-point node seen in the topology illustration. 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 @@ the server on the CSMA network. We have also seen similar operations before. 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 = diff --git a/doc/tutorial/source/conceptual-overview.rst b/doc/tutorial/source/conceptual-overview.rst index 5bd0f0dd4..a449afd98 100644 --- a/doc/tutorial/source/conceptual-overview.rst +++ b/doc/tutorial/source/conceptual-overview.rst @@ -636,7 +636,7 @@ that is managed by an ``UdpEchoClientHelper``. 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)); diff --git a/examples/tutorial/second.cc b/examples/tutorial/second.cc index a486f5141..33298367b 100644 --- a/examples/tutorial/second.cc +++ b/examples/tutorial/second.cc @@ -97,7 +97,7 @@ main (int argc, char *argv[]) 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)); diff --git a/examples/tutorial/third.cc b/examples/tutorial/third.cc index 1a6b09180..ef07a1bda 100644 --- a/examples/tutorial/third.cc +++ b/examples/tutorial/third.cc @@ -157,7 +157,7 @@ main (int argc, char *argv[]) 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 =