mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
use div64 when converting back the burst value for userland
This commit is contained in:
parent
89717f91ef
commit
b2089673e5
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue