summaryrefslogtreecommitdiff
path: root/testcode/perf.c
diff options
context:
space:
mode:
Diffstat (limited to 'testcode/perf.c')
-rw-r--r--testcode/perf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/testcode/perf.c b/testcode/perf.c
index d6d2b05298e82..5b170ca57379d 100644
--- a/testcode/perf.c
+++ b/testcode/perf.c
@@ -177,7 +177,7 @@ perf_tv_add(struct timeval* t1, struct timeval* t2)
#ifndef S_SPLINT_S
t1->tv_sec += t2->tv_sec;
t1->tv_usec += t2->tv_usec;
- while(t1->tv_usec > 1000000) {
+ while(t1->tv_usec >= 1000000) {
t1->tv_usec -= 1000000;
t1->tv_sec++;
}