diff options
author | Arokux B <arokux@gmail.com> | 2013-03-05 08:41:47 +0800 |
---|---|---|
committer | Andy Green <andy.green@linaro.org> | 2013-03-05 08:41:47 +0800 |
commit | 47f5fa498338cce65b9f8e705001d6abf9fd3172 (patch) | |
tree | 8e7bb7835050a9af915ca419f098e0b8994debc0 /win32port | |
parent | 1bc12f9e992851a773166936317d54ea7242feb1 (diff) | |
download | libwebsockets-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.c | 2 |
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);
}
|