Commit 7688f0d9 authored by Brad Fitzpatrick's avatar Brad Fitzpatrick

cmd/pprof: fix scaling of "gigabyte" unit

Fixes #13654

Change-Id: Id2ce32c52efcfdbd66630725d62d2ca6bf0916d5
Reviewed-on: https://go-review.googlesource.com/17934Reviewed-by: 's avatarRuss Cox <rsc@golang.org>
parent 7a481178
......@@ -1505,7 +1505,7 @@ func memoryLabel(value int64, fromUnit, toUnit string) (v float64, u string, ok
case "megabyte", "mb":
value *= 1024 * 1024
case "gigabyte", "gb":
value *= 1024 * 1024
value *= 1024 * 1024 * 1024
default:
return 0, "", false
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment