aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBert Münnich <ber.t@gmx.com>2011-10-13 16:53:17 +0200
committerBert Münnich <ber.t@gmx.com>2011-10-13 16:53:17 +0200
commit61caa5511f6dd6b5df98e1ea5deb25e61b216e19 (patch)
treed0319e03e88de6d742b568e7759ff89cb573a0e2
parent4383a651c733ac59cd00f193c5115567f6a72f5d (diff)
Fix TV_ADD_MSEC macro
-rw-r--r--util.h4
1 files 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 {