Date: Tue, 9 May 2006 20:40:16 GMT From: John Birrell <jb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 96870 for review Message-ID: <200605092040.k49KeG0j070711@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=96870 Change 96870 by jb@jb_freebsd2 on 2006/05/09 20:39:56 Ahh Too he say: use big variable before calculation overflows and time go silly. Affected files ... .. //depot/projects/dtrace/src/sys/sys/time.h#3 edit Differences ... ==== //depot/projects/dtrace/src/sys/sys/time.h#3 (text+ko) ==== @@ -340,7 +340,7 @@ static __inline hrtime_t gethrtime() { struct timespec ts; clock_gettime(CLOCK_UPTIME,&ts); - return (ts.tv_sec * NANOSEC + ts.tv_nsec); + return (((u_int64_t) ts.tv_sec) * NANOSEC + ts.tv_nsec); } #endif #endif /* _SOLARIS_C_SOURCE */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200605092040.k49KeG0j070711>