PERFORCE change 96870 for review

John Birrell jb at FreeBSD.org
Tue May 9 20:40:31 UTC 2006


http://perforce.freebsd.org/chv.cgi?CH=96870

Change 96870 by jb at 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 */


More information about the p4-projects mailing list