diff options
Diffstat (limited to 'src/helper/time_support.c')
-rw-r--r-- | src/helper/time_support.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helper/time_support.c b/src/helper/time_support.c index 05eaf0a..861889e 100644 --- a/src/helper/time_support.c +++ b/src/helper/time_support.c @@ -86,7 +86,7 @@ int duration_measure(struct duration *duration) { struct timeval end; int retval = gettimeofday(&end, NULL); - if (0 == retval) + if (retval == 0) timeval_subtract(&duration->elapsed, &end, &duration->start); return retval; } |