aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/pprof
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2015-02-09 08:32:08 -0800
committerIan Lance Taylor <iant@golang.org>2015-02-10 19:32:59 +0000
commit85cae5d7b86b7eac155e6e706af11ef8dc68ece0 (patch)
tree3955bd3289ccdf86ec48c1cc700a32cf8d09f644 /src/cmd/pprof
parentf77696a7f04cf39c973f455fead2af49d5d0c0f6 (diff)
downloadgo-85cae5d7b86b7eac155e6e706af11ef8dc68ece0.tar.xz
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 <bradfitz@golang.org> Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/cmd/pprof')
-rw-r--r--src/cmd/pprof/internal/report/report.go2
1 files changed, 1 insertions, 1 deletions
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