mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
cam/iosched: fix off by one error
Set the bucket size to be SBT_1US/50000 + 1 to be the first number > 20us. I had this uncommitted in my three when I pushed2283206935since kern.cam.iosched.bucket_base_us was reporting 19us. Fixes:2283206935Sponsored by: Netflix
This commit is contained in:
parent
2283206935
commit
1d92e81fa4
1 changed files with 1 additions and 1 deletions
|
|
@ -112,7 +112,7 @@ SYSCTL_INT(_kern_cam_iosched, OID_AUTO, alpha_bits, CTLFLAG_RW | CTLFLAG_TUN,
|
|||
* of 5.2s which is safeily larger than 1s to help diagnose extreme outliers better.
|
||||
*/
|
||||
#ifndef BUCKET_BASE
|
||||
#define BUCKET_BASE (SBT_1S / 50000) /* 20us */
|
||||
#define BUCKET_BASE ((SBT_1S / 50000) + 1) /* 20us */
|
||||
#endif
|
||||
static sbintime_t bucket_base = BUCKET_BASE;
|
||||
SYSCTL_SBINTIME_USEC(_kern_cam_iosched, OID_AUTO, bucket_base_us, CTLFLAG_RD,
|
||||
|
|
|
|||
Loading…
Reference in a new issue