diff options
author | Leon Klingele <git@leonklingele.de> | 2019-02-22 15:53:52 +0000 |
---|---|---|
committer | Brad Fitzpatrick <bradfitz@golang.org> | 2019-02-26 23:02:05 +0000 |
commit | d090429ea9af7cc2958fd95460196b02212c2b62 (patch) | |
tree | 7012d24ab7187e9e629288a21096da3ab07cfeac /src/cmd/trace | |
parent | 337662f7caef76abd0122edffdc1f7f8102f19f8 (diff) | |
download | go-d090429ea9af7cc2958fd95460196b02212c2b62.tar.gz go-d090429ea9af7cc2958fd95460196b02212c2b62.zip |
all: fix typos as reported by 'misspell'
Change-Id: I904b8655f21743189814bccf24073b6fbb9fc56d
GitHub-Last-Rev: b032c14394c949f9ad7b18d019a3979d38d4e1fb
GitHub-Pull-Request: golang/go#29997
Reviewed-on: https://go-review.googlesource.com/c/160421
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/cmd/trace')
-rw-r--r-- | src/cmd/trace/annotations.go | 8 | ||||
-rw-r--r-- | src/cmd/trace/goroutines.go | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/cmd/trace/annotations.go b/src/cmd/trace/annotations.go index 2498415681..d991588a72 100644 --- a/src/cmd/trace/annotations.go +++ b/src/cmd/trace/annotations.go @@ -1159,17 +1159,17 @@ var templUserRegionType = template.Must(template.New("").Funcs(template.FuncMap{ d := time.Duration(nsec) * time.Nanosecond return template.HTML(niceDuration(d)) }, - "percent": func(dividened, divisor int64) template.HTML { + "percent": func(dividend, divisor int64) template.HTML { if divisor == 0 { return "" } - return template.HTML(fmt.Sprintf("(%.1f%%)", float64(dividened)/float64(divisor)*100)) + return template.HTML(fmt.Sprintf("(%.1f%%)", float64(dividend)/float64(divisor)*100)) }, - "barLen": func(dividened, divisor int64) template.HTML { + "barLen": func(dividend, divisor int64) template.HTML { if divisor == 0 { return "0" } - return template.HTML(fmt.Sprintf("%.2f%%", float64(dividened)/float64(divisor)*100)) + return template.HTML(fmt.Sprintf("%.2f%%", float64(dividend)/float64(divisor)*100)) }, "unknownTime": func(desc regionDesc) int64 { sum := desc.ExecTime + desc.IOTime + desc.BlockTime + desc.SyscallTime + desc.SchedWaitTime diff --git a/src/cmd/trace/goroutines.go b/src/cmd/trace/goroutines.go index 548871a82c..100891d64e 100644 --- a/src/cmd/trace/goroutines.go +++ b/src/cmd/trace/goroutines.go @@ -166,17 +166,17 @@ var templGoroutine = template.Must(template.New("").Funcs(template.FuncMap{ d := time.Duration(nsec) * time.Nanosecond return template.HTML(niceDuration(d)) }, - "percent": func(dividened, divisor int64) template.HTML { + "percent": func(dividend, divisor int64) template.HTML { if divisor == 0 { return "" } - return template.HTML(fmt.Sprintf("(%.1f%%)", float64(dividened)/float64(divisor)*100)) + return template.HTML(fmt.Sprintf("(%.1f%%)", float64(dividend)/float64(divisor)*100)) }, - "barLen": func(dividened, divisor int64) template.HTML { + "barLen": func(dividend, divisor int64) template.HTML { if divisor == 0 { return "0" } - return template.HTML(fmt.Sprintf("%.2f%%", float64(dividened)/float64(divisor)*100)) + return template.HTML(fmt.Sprintf("%.2f%%", float64(dividend)/float64(divisor)*100)) }, "unknownTime": func(desc *trace.GDesc) int64 { sum := desc.ExecTime + desc.IOTime + desc.BlockTime + desc.SyscallTime + desc.SchedWaitTime |