From 61caa5511f6dd6b5df98e1ea5deb25e61b216e19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bert=20M=C3=BCnnich?= Date: Thu, 13 Oct 2011 16:53:17 +0200 Subject: Fix TV_ADD_MSEC macro --- util.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util.h b/util.h index 7065a1b..537b23a 100644 --- a/util.h +++ b/util.h @@ -47,8 +47,8 @@ } #define TV_ADD_MSEC(tv,t) { \ - (tv)->tv_sec = (t) / 1000; \ - (tv)->tv_usec = (t) % 1000 * 1000; \ + (tv)->tv_sec += (t) / 1000; \ + (tv)->tv_usec += (t) % 1000 * 1000; \ } typedef struct { -- cgit v1.2.3