commit | 219a0682d2cf9c8de3b753229f444b16400e6ec4 | [log] [tgz] |
---|---|---|
author | Florian Mayer <fmayer@google.com> | Thu Jan 23 12:56:55 2020 +0000 |
committer | Florian Mayer <fmayer@google.com> | Thu Jan 23 12:56:55 2020 +0000 |
tree | 75264b2ca06b2bf9655fe8163f419836f00e3541 | |
parent | c01c66fb95fe8348f6007b5b5c2a6266329b1c36 [diff] |
Fix infinity self size. Change-Id: I095c80aee0b2951537d13c45644ebb4f9617b6ca
diff --git a/ui/src/frontend/flamegraph.ts b/ui/src/frontend/flamegraph.ts index 36923f8..e74befe 100644 --- a/ui/src/frontend/flamegraph.ts +++ b/ui/src/frontend/flamegraph.ts
@@ -307,7 +307,7 @@ if (unit === '') return totalSize.toLocaleString(); if (totalSize === 0) return `0 ${unit}`; const units = [ - ['', 0], + ['', 1], ['K', step], ['M', Math.pow(step, 2)], ['G', Math.pow(step, 3)]