Date: Sun, 12 Nov 2006 19:30:56 GMT From: Matt Jacob <mjacob@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 109816 for review Message-ID: <200611121930.kACJUuUb072025@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=109816 Change 109816 by mjacob@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; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611121930.kACJUuUb072025>