From f5089ffff41fe374f46fa0cbe058b4a9db91257c Mon Sep 17 00:00:00 2001 From: Alex Brainman Date: Fri, 10 Sep 2010 15:39:45 +1000 Subject: [PATCH] syscall: fix windows Gettimeofday Fixes #1092. R=golang-dev, r2 CC=golang-dev https://golang.org/cl/2121048 --- src/pkg/syscall/syscall_windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkg/syscall/syscall_windows.go b/src/pkg/syscall/syscall_windows.go index 366a482d291..62990440b50 100644 --- a/src/pkg/syscall/syscall_windows.go +++ b/src/pkg/syscall/syscall_windows.go @@ -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 }