aboutsummaryrefslogtreecommitdiff
path: root/win32port
diff options
context:
space:
mode:
authorArokux B <arokux@gmail.com>2013-03-05 08:41:47 +0800
committerAndy Green <andy.green@linaro.org>2013-03-05 08:41:47 +0800
commit47f5fa498338cce65b9f8e705001d6abf9fd3172 (patch)
tree8e7bb7835050a9af915ca419f098e0b8994debc0 /win32port
parent1bc12f9e992851a773166936317d54ea7242feb1 (diff)
downloadlibwebsockets-47f5fa498338cce65b9f8e705001d6abf9fd3172.tar.gz
fix win32helpers gettimeofday epoch
Signed-off-by: Arokux B <arokux@gmail.com>
Diffstat (limited to 'win32port')
-rw-r--r--win32port/win32helpers/gettimeofday.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32port/win32helpers/gettimeofday.c b/win32port/win32helpers/gettimeofday.c
index bdf8e165..18d5a46d 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);
}