Fix an off by 1<<32 error.

This commit is contained in:
Poul-Henning Kamp 1998-03-31 10:47:01 +00:00
parent 75da0aa298
commit 460608e768
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=34975
2 changed files with 4 additions and 4 deletions

View File

@ -39,7 +39,7 @@ static volatile int print_tci = 1;
* SUCH DAMAGE.
*
* @(#)kern_clock.c 8.5 (Berkeley) 1/21/94
* $Id: kern_clock.c,v 1.60 1998/03/30 09:50:00 phk Exp $
* $Id: kern_clock.c,v 1.61 1998/03/31 10:44:56 phk Exp $
*/
#include <sys/param.h>
@ -523,7 +523,7 @@ getnanotime(struct timespec *tsp)
tc = timecounter;
tsp->tv_sec = tc->offset_sec;
tsp->tv_nsec = tc->offset_nano;
tsp->tv_nsec = tc->offset_nano >> 32;
}
void

View File

@ -39,7 +39,7 @@ static volatile int print_tci = 1;
* SUCH DAMAGE.
*
* @(#)kern_clock.c 8.5 (Berkeley) 1/21/94
* $Id: kern_clock.c,v 1.60 1998/03/30 09:50:00 phk Exp $
* $Id: kern_clock.c,v 1.61 1998/03/31 10:44:56 phk Exp $
*/
#include <sys/param.h>
@ -523,7 +523,7 @@ getnanotime(struct timespec *tsp)
tc = timecounter;
tsp->tv_sec = tc->offset_sec;
tsp->tv_nsec = tc->offset_nano;
tsp->tv_nsec = tc->offset_nano >> 32;
}
void