From ebc58ede20b4e35f5ea29d2e63d1a3d8049e64d0 Mon Sep 17 00:00:00 2001 From: David Joseph Date: Tue, 9 Apr 2013 15:48:05 -0400 Subject: [PATCH] regressions: fix common_gettimeofday. Accidentally moved code that sets tv_sec/usec outside of tv NULL check. --- regressions/common.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/regressions/common.h b/regressions/common.h index 1cdc174..e6f9f5a 100644 --- a/regressions/common.h +++ b/regressions/common.h @@ -149,10 +149,11 @@ common_gettimeofday(struct timeval *tv, void *tz) /* Windows' epoch starts on 01/01/1601, while Unix' starts on 01/01/1970. */ tmp_time -= DELTA_EPOCH; + + tv->tv_sec = (long)(tmp_time / 1000000UL); + tv->tv_usec = (long)(tmp_time % 1000000UL); } - tv->tv_sec = (long)(tmp_time / 1000000UL); - tv->tv_usec = (long)(tmp_time % 1000000UL); if (tz != NULL) { if (tzflag == false) {