Commit f5089fff authored by Alex Brainman's avatar Alex Brainman

syscall: fix windows Gettimeofday

Fixes #1092.

R=golang-dev, r2
CC=golang-dev
https://golang.org/cl/2121048
parent 781462dc
......@@ -393,7 +393,7 @@ func Gettimeofday(tv *Timeval) (errno int) {
ms := ft.Microseconds()
// split into sec / usec
tv.Sec = int32(ms / 1e6)
tv.Usec = int32(ms) - tv.Sec
tv.Usec = int32(ms) - tv.Sec*1e6
return 0
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment