Skip to content

Commit 7688f0d

Browse files
committed
cmd/pprof: fix scaling of "gigabyte" unit
Fixes #13654 Change-Id: Id2ce32c52efcfdbd66630725d62d2ca6bf0916d5 Reviewed-on: https://go-review.googlesource.com/17934 Reviewed-by: Russ Cox <[email protected]>
1 parent 7a48117 commit 7688f0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmd/pprof/internal/report/report.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1505,7 +1505,7 @@ func memoryLabel(value int64, fromUnit, toUnit string) (v float64, u string, ok
15051505
case "megabyte", "mb":
15061506
value *= 1024 * 1024
15071507
case "gigabyte", "gb":
1508-
value *= 1024 * 1024
1508+
value *= 1024 * 1024 * 1024
15091509
default:
15101510
return 0, "", false
15111511
}

0 commit comments

Comments
 (0)