1
0
mirror of https://github.com/golang/go synced 2024-09-30 02:14:29 -06:00

cmd/pprof: fix scaling of "gigabyte" unit

Fixes #13654

Change-Id: Id2ce32c52efcfdbd66630725d62d2ca6bf0916d5
Reviewed-on: https://go-review.googlesource.com/17934
Reviewed-by: Russ Cox <rsc@golang.org>
This commit is contained in:
Brad Fitzpatrick 2015-12-17 16:34:08 +00:00
parent 7a48117899
commit 7688f0d9fb

View File

@ -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
}