DragonFly bugs List (threaded) for 2004-07
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
Re: pmtimer and nanouptime
:but what if you try to replace this
: if (nsec >= 1000000000) {
: nsec -= 1000000000;
: ++tsp->tv_sec;
: }
:with
: while (nsec >= 1000000000) {
: nsec -= 1000000000;
: ++tsp->tv_sec;
: }
:
:- Jonas Trollvik
:"YONETANI Tomokazu" <qhwt+dragonfly-bugs@xxxxxxxxxx> wrote in message
No, that would be a 'hack'... a bad idea that doesn't really solve the
problem tha causes nsec to go out of range.
-Matt
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]