mirror of
https://github.com/golang/go
synced 2024-09-29 16:34:31 -06:00
cmd/trace: fix typos as reported by 'misspell'
This commit is contained in:
parent
d3b8330b3d
commit
b032c14394
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user