Used integer division in the profiler average column to make it easier to sort.

This commit is contained in:
Pietro Gagliardi 2015-05-10 17:42:28 -04:00
parent cb8a4872d5
commit 721acd44a4
1 changed files with 2 additions and 2 deletions

View File

@ -122,9 +122,9 @@ func main() {
for f, p := range profile {
fmt.Printf("%s %v %v ", f, p.Calls, p.TotalTime)
if p.Calls != 0 {
fmt.Printf("%v", float64(p.TotalTime) / float64(p.Calls))
fmt.Printf("%v", p.TotalTime / uint64(p.Calls))
} else {
fmt.Printf("%v", float64(0))
fmt.Printf("%v", 0)
}
fmt.Printf("\n")
}