PERFORCE change 109816 for review
Matt Jacob
mjacob at FreeBSD.org
Sun Nov 12 19:32:39 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=109816
Change 109816 by mjacob at newisp on 2006/11/12 19:30:44
Fix a factory defect in isp_mstohz.
Affected files ...
.. //depot/projects/newisp/dev/isp/isp_freebsd.c#24 edit
Differences ...
==== //depot/projects/newisp/dev/isp/isp_freebsd.c#24 (text+ko) ====
@@ -3441,7 +3441,10 @@
int
isp_mstohz(int ms)
{
- ms = ((ms + 999) / 1000);
+ struct timeval t;
+ t.tv_sec = ms / 1000;
+ t.tv_usec = (ms % 1000) * 1000;
+ ms = tvtohz(&t);
if (ms < 0) {
ms = 0x7fffffff;
}
More information about the p4-projects
mailing list