]> Cypherpunks repositories - gostls13.git/commitdiff
runtime/pprof: fix spelling in test
authorKevin Burke <kev@inburke.com>
Fri, 16 Dec 2016 15:50:08 +0000 (07:50 -0800)
committerIan Lance Taylor <iant@golang.org>
Fri, 16 Dec 2016 16:09:13 +0000 (16:09 +0000)
Change-Id: Id10e41fe396156106f63a4b29d673b31bea5358f
Reviewed-on: https://go-review.googlesource.com/34551
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/pprof/pprof_test.go

index 2a242a151e20af558214cd433bee90992beeafe5..8372283589d0a61dfbe11419f7dfb6085bfded83 100644 (file)
@@ -207,7 +207,7 @@ func profileOk(t *testing.T, need []string, prof bytes.Buffer, duration time.Dur
        // We used to always require at least ideal/4 samples,
        // but that is too hard to guarantee on a loaded system.
        // Now we accept 10 or more samples, which we take to be
-       // enough to show that at least some profiling is ocurring.
+       // enough to show that at least some profiling is occurring.
        if ideal := uintptr(duration * 100 / time.Second); samples == 0 || (samples < ideal/4 && samples < 10) {
                t.Logf("too few samples; got %d, want at least %d, ideally %d", samples, ideal/4, ideal)
                ok = false