pmtimer and nanouptime

Matthew Dillon dillon at apollo.backplane.com
Tue Jul 20 11:15:30 PDT 2004


: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 at 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





More information about the Bugs mailing list