From: Ian Lance Taylor Date: Mon, 9 Feb 2015 16:32:08 +0000 (-0800) Subject: cmd/pprof/internal/report: fix typo in recognized output unit X-Git-Tag: go1.5beta1~2064 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=85cae5d7b86b7eac155e6e706af11ef8dc68ece0;p=gostls13.git cmd/pprof/internal/report: fix typo in recognized output unit Fixes #9814. Change-Id: I1be49efae0648038f590eeca1262037bf1af3df5 Reviewed-on: https://go-review.googlesource.com/4240 Reviewed-by: Brad Fitzpatrick Reviewed-by: Russ Cox --- diff --git a/src/cmd/pprof/internal/report/report.go b/src/cmd/pprof/internal/report/report.go index e5977fd034..586f41d4d6 100644 --- a/src/cmd/pprof/internal/report/report.go +++ b/src/cmd/pprof/internal/report/report.go @@ -1531,7 +1531,7 @@ func memoryLabel(value int64, fromUnit, toUnit string) (v float64, u string, ok output, toUnit = float64(value)/1024, "kB" case "mb", "mbyte", "megabyte": output, toUnit = float64(value)/(1024*1024), "MB" - case "gb", "gbyte", "giggabyte": + case "gb", "gbyte", "gigabyte": output, toUnit = float64(value)/(1024*1024*1024), "GB" } return output, toUnit, true