Date: Sun, 01 Mar 2015 19:37:08 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 198139] timer2sbintime() Loss of precision during conversion Message-ID: <bug-198139-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
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@FreeBSD.org Reporter: gibbs@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-198139-8>