From fefdd97156bb2f86c5b6596dc7e28d954516b3ed Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Fri, 29 Jun 2007 21:25:56 +0000 Subject: [PATCH] 2007-06-28 Dmitry V. Levin * util.c (tv_mul): Multiply tv_usec properly. Patch from Cai Fei . --- ChangeLog | 5 +++++ util.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 3509caa5..fac78fae 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-06-28 Dmitry V. Levin + + * util.c (tv_mul): Multiply tv_usec properly. + Patch from Cai Fei . + 2007-06-11 Jan Kratochvil Never interrupt when the attached traced process would be left stopped. diff --git a/util.c b/util.c index 06162f41..1ca400f9 100644 --- a/util.c +++ b/util.c @@ -227,7 +227,7 @@ struct timeval *tv, *a; int n; { tv->tv_usec = a->tv_usec * n; - tv->tv_sec = a->tv_sec * n + a->tv_usec / 1000000; + tv->tv_sec = a->tv_sec * n + tv->tv_usec / 1000000; tv->tv_usec %= 1000000; } -- 2.40.0