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
This commit is contained in:
parent
fa96701c8a
commit
7312e4e5cf
@ -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),
|
||||
|
Loading…
x
Reference in New Issue
Block a user