Hi all,
When I'm checking the output trace file. I find the time only precises
to 6 digits after the decimal point.
like this:
+ 0.004101 4 3 ack 40 ------- 1 6.0 1.0 433 5448
- 0.004101 4 3 ack 40 ------- 1 6.0 1.0 433 5448
r 0.004101 3 4 tcp 1500 ------- 1 1.0 6.0 1307541 5384
+ 0.004101 4 6 tcp 1500 ------- 1 1.0 6.0 1307541 5384
- 0.004101 4 6 tcp 1500 ------- 1 1.0 6.0 1307541 5384
r 0.004102 4 3 ack 40 ------- 1 6.0 1.0 433 5448

But my simulation needs the precision to be 9 or more digits.
So I tried to change the C++ code in ns-2.31/trace/basetrace.h
like this:

 //Default rounding is to 6 digits after decimal
#define PRECISION 1.0E+6

I define the PRECISION to 1.0E+9 and I run the make clean; make
depend; and make command.
But it doesn't work.  So I'm here to ask for help.
Thank you very much! Looking forward to your reply.
Best regards

Reply via email to