Mohammad Masoumi
unread,Aug 5, 2013, 11:26:29 PM8/5/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to omn...@googlegroups.com
Dear my friends
Hello
ThruputMeter calculates its output based on bit/sec , but I want it would show based on Mbps .I know I must change its source code , but I do not know where and how can I do that.I think in finish() it should be manipulated . Is there any body help to me ?
I want to achieve similarity of two graphs , you can see in images that what want to do.
void ThruputMeter::finish()
{
simtime_t duration = simTime() - startTime;
recordScalar("duration", duration);
recordScalar("total packets", numPackets);
recordScalar("total bits", numBits);
recordScalar("avg throughput (bit/s)", numBits/duration.dbl());
recordScalar("avg packets/s", numPackets/duration.dbl());
Can you tell me how can I change the value of ThruputMeter?