summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 {