]> Cypherpunks repositories - gostls13.git/commitdiff
time bug: darwin, linux return microseconds not nanoseconds
authorRuss Cox <rsc@golang.org>
Mon, 22 Sep 2008 20:46:57 +0000 (13:46 -0700)
committerRuss Cox <rsc@golang.org>
Mon, 22 Sep 2008 20:46:57 +0000 (13:46 -0700)
R=r
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=15626
CL=15641

src/syscall/time_amd64_darwin.go
src/syscall/time_amd64_linux.go

index d4cdaa048e821d4a6a235930cbb57efebb1c0202..4bcbe249f6d80e38880753a24e97eede5e1a4ae8 100644 (file)
@@ -15,5 +15,5 @@ export func gettimeofday() (sec, nsec, errno int64) {
        if err != 0 {
                return 0, 0, err
        }
-       return r1, r2, 0
+       return r1, r2*1000, 0
 }
index 9feacf654634d377b7ec1a32554459423448d811..71bd5658be777e8dbf6d0b70454d6559de6ae1cf 100644 (file)
@@ -15,5 +15,5 @@ export func gettimeofday() (sec, nsec, errno int64) {
        if err != 0 {
                return 0, 0, err
        }
-       return tv[0], tv[1], 0
+       return tv[0], tv[1]*1000, 0
 }