File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -186,8 +186,8 @@ func upRate(m []model.Measurement) float64 {
186186func minRTT (m []model.Measurement ) float64 {
187187 var rtt float64
188188 if len (m ) > 0 {
189- // Convert to seconds .
190- rtt = float64 (m [len (m )- 1 ].TCPInfo .MinRTT ) / 1000000
189+ // Convert to milliseconds .
190+ rtt = float64 (m [len (m )- 1 ].TCPInfo .MinRTT ) / 1000
191191 }
192192 return rtt
193193}
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ func TestNDT7ResultParser_ParseAndInsert(t *testing.T) {
5757 TestTime : row .A .TestTime ,
5858 CongestionControl : "bbr" ,
5959 MeanThroughputMbps : 38.714033637501984 ,
60- MinRTT : 0.285804 ,
60+ MinRTT : 285.804 ,
6161 LossRate : 0.12029169202467564 ,
6262 }
6363 if diff := deep .Equal (row .A , exp ); diff != nil {
@@ -96,7 +96,7 @@ func TestNDT7ResultParser_ParseAndInsert(t *testing.T) {
9696 TestTime : row .A .TestTime ,
9797 CongestionControl : "bbr" ,
9898 MeanThroughputMbps : 2.6848341983403983 ,
99- MinRTT : 0.173733 ,
99+ MinRTT : 173.733 ,
100100 LossRate : 0 ,
101101 }
102102 if diff := deep .Equal (row .A , exp ); diff != nil {
You can’t perform that action at this time.
0 commit comments