Index: src/stats/examples/file-helper-example.cc |
=================================================================== |
--- a/src/stats/examples/file-helper-example.cc |
+++ b/src/stats/examples/file-helper-example.cc |
@@ -126,9 +126,9 @@ |
// Write the values generated by the probe. The path that we |
// provide helps to disambiguate the source of the trace. |
- fileHelper.WriteProbe ("ns3::Uinteger32Probe", |
- "/Names/Emitter/Counter", |
- "Output"); |
+ fileHelper.AddProbe ("ns3::Uinteger32Probe", |
+ "/Names/Emitter/Counter", |
+ "Output"); |
// The Emitter object is not associated with an ns-3 node, so |
// it won't get started automatically, so we need to do this ourselves |