[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

error in fq.tcl



Hi,
I think there is a mistake in the file fq.tcl in the proc simplex-link.
There is the following lines :
        if [info exists traceAllFile_] {
                $self trace-queue $n1 $n2 $traceAllFile_
        }

        set trace [$self get-ns-traceall]
        if {$trace != ""} {
                $self trace-queue $n1 $n2 $trace
        }

It seems to me that the first 3 lines do the same things that the last 4
lines.
If I use the original code, my trace file has all the lines duplicate:

+ 0 0 2 cbr 210 ------- 1 0.0 3.0 1667330932 0
+ 0 0 2 cbr 210 ------- 1 0.0 3.0 1667330932 0
- 0 0 2 cbr 210 ------- 1 0.0 3.0 1667330932 0
- 0 0 2 cbr 210 ------- 1 0.0 3.0 1667330932 0
+ 0 1 2 cbr 210 ------- 2 1.0 3.1 0 1
+ 0 1 2 cbr 210 ------- 2 1.0 3.1 0 1
- 0 1 2 cbr 210 ------- 2 1.0 3.1 0 1
- 0 1 2 cbr 210 ------- 2 1.0 3.1 0 1
+ 0.0672 1 2 cbr 210 ------- 2 1.0 3.1 1 2
+ 0.0672 1 2 cbr 210 ------- 2 1.0 3.1 1 2
- 0.0672 1 2 cbr 210 ------- 2 1.0 3.1 1 2
- 0.0672 1 2 cbr 210 ------- 2 1.0 3.1 1 2
r 0.1168 0 2 cbr 210 ------- 1 0.0 3.0 1667330932 0
r 0.1168 0 2 cbr 210 ------- 1 0.0 3.0 1667330932 0
+ 0.1168 2 3 cbr 210 ------- 1 0.0 3.0 1667330932 0
+ 0.1168 2 3 cbr 210 ------- 1 0.0 3.0 1667330932 0
- 0.1168 2 3 cbr 210 ------- 1 0.0 3.0 1667330932 0
- 0.1168 2 3 cbr 210 ------- 1 0.0 3.0 1667330932 0

If I comment the first 3 lines my trace file is ok : 
+ 0 0 2 cbr 210 ------- 1 0.0 3.0 1735598171 0
- 0 0 2 cbr 210 ------- 1 0.0 3.0 1735598171 0
+ 0 1 2 cbr 210 ------- 2 1.0 3.1 0 1
- 0 1 2 cbr 210 ------- 2 1.0 3.1 0 1
+ 0.0672 1 2 cbr 210 ------- 2 1.0 3.1 1 2
- 0.0672 1 2 cbr 210 ------- 2 1.0 3.1 1 2
r 0.1168 0 2 cbr 210 ------- 1 0.0 3.0 1735598171 0
+ 0.1168 2 3 cbr 210 ------- 1 0.0 3.0 1735598171 0
- 0.1168 2 3 cbr 210 ------- 1 0.0 3.0 1735598171 0

Arnaud.
-- 
----------------------------------------------------------------------
Arnaud Legout

Institut Eurecom               	Phone : 00.33.4.93.00.26.61
2229, route des Cretes         	Fax   : 00.33.4.93.00.26.27
BP 193                         	E-mail: [email protected]
06904 Sophia Antipolis cedex    Web   : http://www.eurecom.fr/~legout    
FRANCE                    
----------------------------------------------------------------------