Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/tio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/tio.c b/common/tio.c
index 6f9bfc3..e323e1e 100644
--- a/common/tio.c
+++ b/common/tio.c
@@ -78,7 +78,7 @@ static inline void tio_tv_add(struct timeval *tv1, const struct timeval *tv2)
{
/* BUG: we hope that this does not overflow */
tv1->tv_usec+=tv2->tv_usec;
- if (tv1->tv_usec>1000000)
+ if (tv1->tv_usec>=1000000)
{
tv1->tv_usec-=1000000;
tv1->tv_sec+=1;