projects
/
profile
/
ivi
/
libwebsockets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0cec60e
)
fix win32helpers gettimeofday epoch
54/3154/1
author
Arokux B
<arokux@gmail.com>
Tue, 5 Mar 2013 00:41:47 +0000
(08:41 +0800)
committer
Kevron Rees
<kevron_m_rees@linux.intel.com>
Thu, 7 Mar 2013 21:01:38 +0000
(13:01 -0800)
Signed-off-by: Arokux B <arokux@gmail.com>
win32port/win32helpers/gettimeofday.c
patch
|
blob
|
history
diff --git
a/win32port/win32helpers/gettimeofday.c
b/win32port/win32helpers/gettimeofday.c
index
bdf8e16
..
18d5a46
100644
(file)
--- 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;
\r
\r
/*converting file time to unix epoch*/
\r
- tmpres -= DELTA_EPOCH_IN_MICROSECS;
\r
tmpres /= 10; /*convert into microseconds*/
\r
+ tmpres -= DELTA_EPOCH_IN_MICROSECS;
tv->tv_sec = (long)(tmpres / 1000000UL);
\r
tv->tv_usec = (long)(tmpres % 1000000UL);
\r
}
\r