aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_vegas.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/tcp_vegas.c')
-rw-r--r--net/ipv4/tcp_vegas.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_vegas.c b/net/ipv4/tcp_vegas.c
index 0f0ee7f732c3..73e19cf7df21 100644
--- a/net/ipv4/tcp_vegas.c
+++ b/net/ipv4/tcp_vegas.c
@@ -118,7 +118,7 @@ void tcp_vegas_pkts_acked(struct sock *sk, u32 cnt, ktime_t last)
118 u32 vrtt; 118 u32 vrtt;
119 119
120 /* Never allow zero rtt or baseRTT */ 120 /* Never allow zero rtt or baseRTT */
121 vrtt = (ktime_to_ns(net_timedelta(last)) / NSEC_PER_USEC) + 1; 121 vrtt = ktime_to_us(net_timedelta(last)) + 1;
122 122
123 /* Filter to find propagation delay: */ 123 /* Filter to find propagation delay: */
124 if (vrtt < vegas->baseRTT) 124 if (vrtt < vegas->baseRTT)