summaryrefslogtreecommitdiffstats
path: root/kernel/net/ipv4/tcp_metrics.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/net/ipv4/tcp_metrics.c')
-rw-r--r--kernel/net/ipv4/tcp_metrics.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/net/ipv4/tcp_metrics.c b/kernel/net/ipv4/tcp_metrics.c
index c8cbc2b4b..a726d7853 100644
--- a/kernel/net/ipv4/tcp_metrics.c
+++ b/kernel/net/ipv4/tcp_metrics.c
@@ -550,7 +550,7 @@ reset:
*/
if (crtt > tp->srtt_us) {
/* Set RTO like tcp_rtt_estimator(), but from cached RTT. */
- crtt /= 8 * USEC_PER_MSEC;
+ crtt /= 8 * USEC_PER_SEC / HZ;
inet_csk(sk)->icsk_rto = crtt + max(2 * crtt, tcp_rto_min(sk));
} else if (tp->srtt_us == 0) {
/* RFC6298: 5.7 We've failed to get a valid RTT sample from