mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
use div64 when converting back the burst value for userland
This commit is contained in:
parent
89717f91ef
commit
b2089673e5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=200361
@ -2165,7 +2165,7 @@ dummynet_get(struct sockopt *sopt)
|
||||
*/
|
||||
bcopy(pipe, bp, sizeof(*pipe));
|
||||
pipe_bp->delay = (pipe_bp->delay * 1000) / hz;
|
||||
pipe_bp->burst /= 8 * hz;
|
||||
pipe_bp->burst = div64(pipe_bp->burst, 8 * hz);
|
||||
/*
|
||||
* XXX the following is a hack based on ->next being the
|
||||
* first field in dn_pipe and dn_flow_set. The correct
|
||||
|
Loading…
Reference in New Issue
Block a user