We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20056c3 commit 3a44054Copy full SHA for 3a44054
1 file changed
src/inet/queueing/flow/FlowMeasurementRecorder.cc
@@ -8,6 +8,7 @@
8
#include "inet/queueing/flow/FlowMeasurementRecorder.h"
9
10
#include "inet/common/FlowTag.h"
11
+#include "inet/common/INETUtils.h"
12
#include "inet/common/PacketEventTag.h"
13
14
namespace inet {
@@ -62,7 +63,9 @@ void FlowMeasurementRecorder::initialize(int stage)
62
63
measurePropagationTime = matchesString(measureMatcher, "propagationTime");
64
measurePacketEvent = matchesString(measureMatcher, "packetEvent");
65
if (measurePacketEvent) {
- packetEventFile.open(par("packetEventFileName").stringValue(), std::ios::out);
66
+ const char *fileName = par("packetEventFileName");
67
+ inet::utils::makePathForFile(fileName);
68
+ packetEventFile.open(fileName, std::ios::out);
69
packetEventFile.openArray();
70
}
71
0 commit comments