[Bug 198139] timer2sbintime() Loss of precision during conversion
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Mar 1 19:37:09 UTC 2015
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198139
Bug ID: 198139
Summary: timer2sbintime() Loss of precision during conversion
Product: Base System
Version: 11.0-CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Many People
Priority: ---
Component: kern
Assignee: freebsd-bugs at FreeBSD.org
Reporter: gibbs at FreeBSD.org
The conversion error in timer2sbintime() is very high, almost 7% for timers
using NOTE_NSECONDS. A nanosecond takes 4.294967296 "sbintimes", but the
conversion truncates this to 4 through its multiplication by the constant
SBT_1NS. Similar, but much smaller, error is introduced for the NOTE_USECONDS
and NOTE_MSECONDS conversions.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list