From owner-p4-projects@FreeBSD.ORG Sun Nov 12 19:32:39 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 539B116A4D2; Sun, 12 Nov 2006 19:32:39 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 268E416A494 for ; Sun, 12 Nov 2006 19:32:39 +0000 (UTC) (envelope-from mjacob@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id CE91143DA6 for ; Sun, 12 Nov 2006 19:31:04 +0000 (GMT) (envelope-from mjacob@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id kACJUuAf072028 for ; Sun, 12 Nov 2006 19:30:56 GMT (envelope-from mjacob@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id kACJUuUb072025 for perforce@freebsd.org; Sun, 12 Nov 2006 19:30:56 GMT (envelope-from mjacob@freebsd.org) Date: Sun, 12 Nov 2006 19:30:56 GMT Message-Id: <200611121930.kACJUuUb072025@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to mjacob@freebsd.org using -f From: Matt Jacob To: Perforce Change Reviews Cc: Subject: PERFORCE change 109816 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Nov 2006 19:32:39 -0000 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; }