diff --git a/src/git.xdrm.io/schastsp/cmd/client/client.go b/src/git.xdrm.io/schastsp/cmd/client/client.go index 82cfba2..98bfd71 100644 --- a/src/git.xdrm.io/schastsp/cmd/client/client.go +++ b/src/git.xdrm.io/schastsp/cmd/client/client.go @@ -86,10 +86,10 @@ func main(){ msElapsed := float64(usElapsed / 1e3) sElapsed := float64(msElapsed / 1e3) - if sElapsed >= 1 { fmt.Errorf("executed in %.3f s\n", sElapsed) - } else if msElapsed >= 1 { fmt.Errorf("executed in %.3f ms\n", msElapsed) - } else if usElapsed >= 1 { fmt.Errorf("executed in %.3f us\n", usElapsed) - } else if nsElapsed >= 1 { fmt.Errorf("executed in %.3f ns\n", nsElapsed) } + if sElapsed >= 1 { os.Stderr.WriteString( fmt.Sprintf("executed in %.3f s\n", sElapsed) ) + } else if msElapsed >= 1 { os.Stderr.WriteString( fmt.Sprintf("executed in %.3f ms\n", msElapsed) ) + } else if usElapsed >= 1 { os.Stderr.WriteString( fmt.Sprintf("executed in %.3f us\n", usElapsed) ) + } else if nsElapsed >= 1 { os.Stderr.WriteString( fmt.Sprintf("executed in %.3f ns\n", nsElapsed) ) } return } diff --git a/src/git.xdrm.io/schastsp/cmd/server/server.go b/src/git.xdrm.io/schastsp/cmd/server/server.go index 211d7ea..7c48561 100644 --- a/src/git.xdrm.io/schastsp/cmd/server/server.go +++ b/src/git.xdrm.io/schastsp/cmd/server/server.go @@ -74,10 +74,10 @@ func main(){ msElapsed := float64(usElapsed / 1e3) sElapsed := float64(msElapsed / 1e3) - if sElapsed >= 1 { fmt.Errorf("executed in %.3f s\n", sElapsed) - } else if msElapsed >= 1 { fmt.Errorf("executed in %.3f ms\n", msElapsed) - } else if usElapsed >= 1 { fmt.Errorf("executed in %.3f us\n", usElapsed) - } else if nsElapsed >= 1 { fmt.Errorf("executed in %.3f ns\n", nsElapsed) } + if sElapsed >= 1 { os.Stderr.WriteString( fmt.Sprintf("executed in %.3f s\n", sElapsed) ) + } else if msElapsed >= 1 { os.Stderr.WriteString( fmt.Sprintf("executed in %.3f ms\n", msElapsed) ) + } else if usElapsed >= 1 { os.Stderr.WriteString( fmt.Sprintf("executed in %.3f us\n", usElapsed) ) + } else if nsElapsed >= 1 { os.Stderr.WriteString( fmt.Sprintf("executed in %.3f ns\n", nsElapsed) ) } return }