Commit a6d6d01d authored by shengjh's avatar shengjh 🇨🇳
Browse files

Fix signal types and the simulation can run for the first time.

parent 1e04efde
......@@ -517,7 +517,7 @@ WorkloadSynthesizer::processRcvdMsg(Packet* pk)
<< "Bytes" << endl;
double idealDelay = idealMsgEndToEndDelay(rcvdMsg);
double queuingDelay = completionTime.dbl() - idealDelay;
simtime_t queuingDelay = completionTime.dbl() - idealDelay;
double stretchFactor =
(idealDelay == 0.0 ? 1.0 : completionTime.dbl()/idealDelay);
......
......@@ -146,7 +146,7 @@ class MesgStats : public cObject, noncopyable
uint64_t mesgSizeBin;
simtime_t latency;
double stretch;
double queuingDelay;
simtime_t queuingDelay;
simtime_t transportSchedDelay;
};
......
......@@ -63,7 +63,8 @@ module WorkloadSynthesizer like ITrafficGeneratorApp
@signal[msg*E2EStretch](type=double);
@signal[msg*QueuingDelay](type=simtime_t);
@signal[msg*TransportSchedDelay](type=simtime_t);
@signal[msg*BytesOnWire](type=AppMessage);
//@signal[msg*BytesOnWire](type=AppMessage);
@signal[msg*BytesOnWire](type=int);
// This singal is emitted with a pointer to an object that contains
// values of all other msg** signals above and the message size those
// values correspoond to.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment