fixed broken gettimeofday implementation for Windows

small, but critical typo :)
This commit is contained in:
unak
2014-03-06 12:40:48 +09:00
parent bd4f38add6
commit 561c2a1581
+1 -1
View File
@@ -64,7 +64,7 @@ gettimeofday(struct timeval *tv, void *tz)
GetSystemTimeAsFileTime(&t.ft); /* 100 ns intervals since Windows epoch */
t.u64 -= 116444736000000000ui64; /* Unix epoch bias */
t.u64 /= 10; /* to microseconds */
tv->tv_sec = (time_t)(t.u64 / 1000 * 1000);
tv->tv_sec = (time_t)(t.u64 / (1000 * 1000));
tv->tv_usec = t.u64 % 1000 * 1000;
}
return 0;