1000000 usec -> 1 sec 0 usec; fix.
Submitted by: "Philippe Charnier" <charnier@lirmm.fr>
This commit is contained in:
parent
1d5f5f9312
commit
b5886db230
@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* $Id: time.c,v 1.2 1994/09/24 02:54:20 davidg Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@ -256,7 +256,7 @@ tvadd(tsum, t0)
|
||||
|
||||
tsum->tv_sec += t0->tv_sec;
|
||||
tsum->tv_usec += t0->tv_usec;
|
||||
if (tsum->tv_usec > 1000000)
|
||||
if (tsum->tv_usec >= 1000000)
|
||||
tsum->tv_sec++, tsum->tv_usec -= 1000000;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user