diff options
author | Randall Stewart <rrs@FreeBSD.org> | 2021-07-08 11:06:58 +0000 |
---|---|---|
committer | Randall Stewart <rrs@FreeBSD.org> | 2021-07-08 12:16:45 +0000 |
commit | 7312e4e5cfc8e48597acf17f4faa8159f0b5fa06 (patch) | |
tree | 408eea09971dccd6c504f347844e01f8c1fbbe19 /sys/netinet | |
parent | fa96701c8abbc29aad7f8f8d6b823bd7f89c6c15 (diff) | |
download | src-7312e4e5cfc8e48597acf17f4faa8159f0b5fa06.tar.gz src-7312e4e5cfc8e48597acf17f4faa8159f0b5fa06.zip |
tcp: Fix 32 bit platform breakage
This fixes the incorrect use of a sysctl add to u64. It
was for a useconds time, but on 32 bit platforms its
not a u64. Instead use the long directive.
Reviewed by: tuexen
Sponsored by: Netflix Inc.
Differential Revision: https://reviews.freebsd.org/D31107
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/tcp_hpts.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/tcp_hpts.c b/sys/netinet/tcp_hpts.c index 9a390e3a85c8..9ec092f703ec 100644 --- a/sys/netinet/tcp_hpts.c +++ b/sys/netinet/tcp_hpts.c @@ -2208,10 +2208,10 @@ tcp_init_hptsi(void *st) OID_AUTO, "lastran", CTLFLAG_RD, &cts_last_ran[i], 0, "The last usec tick that this hpts ran"); - SYSCTL_ADD_U64(&hpts->hpts_ctx, + SYSCTL_ADD_LONG(&hpts->hpts_ctx, SYSCTL_CHILDREN(hpts->hpts_root), OID_AUTO, "cur_min_sleep", CTLFLAG_RD, - &hpts->p_mysleep.tv_usec, 0, + &hpts->p_mysleep.tv_usec, "What the running pacers is using for p_mysleep.tv_usec"); SYSCTL_ADD_U64(&hpts->hpts_ctx, SYSCTL_CHILDREN(hpts->hpts_root), |