PERFORCE change 66072 for review
Peter Wemm
peter at FreeBSD.org
Mon Nov 29 16:44:10 PST 2004
http://perforce.freebsd.org/chv.cgi?CH=66072
Change 66072 by peter at peter_daintree on 2004/11/30 00:43:28
aargh. I was looking at the math so much that I missed the obvious
C errors.
Affected files ...
.. //depot/projects/hammer/sys/kern/tty.c#38 edit
Differences ...
==== //depot/projects/hammer/sys/kern/tty.c#38 (text+ko) ====
@@ -1858,7 +1858,7 @@
* sufficient for the first calculation for hz < 169.
*/
if (sizeof(u_long) > 4 || slp <= ULONG_MAX / hz)
- slp = slp = (((u_long)slp * hz) + 999999) / 1000000;
+ slp = (long) (((u_long)slp * hz) + 999999) / 1000000;
else
slp = (slp + (tick - 1)) / tick;
goto sleep;
More information about the p4-projects
mailing list