From 47f5fa498338cce65b9f8e705001d6abf9fd3172 Mon Sep 17 00:00:00 2001 From: Arokux B Date: Tue, 5 Mar 2013 08:41:47 +0800 Subject: [PATCH] fix win32helpers gettimeofday epoch Signed-off-by: Arokux B --- win32port/win32helpers/gettimeofday.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win32port/win32helpers/gettimeofday.c b/win32port/win32helpers/gettimeofday.c index bdf8e16..18d5a46 100644 --- a/win32port/win32helpers/gettimeofday.c +++ b/win32port/win32helpers/gettimeofday.c @@ -33,8 +33,8 @@ int gettimeofday(struct timeval *tv, struct timezone *tz) tmpres |= ft.dwLowDateTime; /*converting file time to unix epoch*/ - tmpres -= DELTA_EPOCH_IN_MICROSECS; tmpres /= 10; /*convert into microseconds*/ + tmpres -= DELTA_EPOCH_IN_MICROSECS; tv->tv_sec = (long)(tmpres / 1000000UL); tv->tv_usec = (long)(tmpres % 1000000UL); } -- 2.7.4