diff options
author | Kanishkar J <kanishkarj@hotmail.com> | 2018-10-03 14:51:26 +0530 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-10-03 05:21:26 -0400 |
commit | 3f1899fc46e66aa80e9f8a469839b5b8a7b8506c (patch) | |
tree | 79f429ae13cf88c88717c68463c1d15edd3e1e10 | |
parent | 545109cf2df4548aae754734cc7b0852485d4edd (diff) |
Hide line with value zero (#882)
-rw-r--r-- | website/app.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/website/app.js b/website/app.js index c058829a1..84fb0f52d 100644 --- a/website/app.js +++ b/website/app.js @@ -28,7 +28,7 @@ export function createExecTimeColumns(data) { ...data.map(d => { const benchmark = d.benchmark[name]; const meanValue = benchmark ? benchmark.mean : 0; - return meanValue || 0; + return meanValue || null; }) ]); } @@ -44,9 +44,9 @@ export function createBinarySizeColumns(data) { return name === "deno" ? binarySizeData : 0; default: if (!binarySizeData) { - return 0; + return null; } - return binarySizeData[name] || 0; + return binarySizeData[name] || null; } }) ]); @@ -59,9 +59,9 @@ export function createThreadCountColumns(data) { ...data.map(d => { const threadCountData = d["thread_count"]; if (!threadCountData) { - return 0; + return null; } - return threadCountData[name] || 0; + return threadCountData[name] || null; }) ]); } @@ -73,9 +73,9 @@ export function createSyscallCountColumns(data) { ...data.map(d => { const syscallCountData = d["syscall_count"]; if (!syscallCountData) { - return 0; + return null; } - return syscallCountData[name] || 0; + return syscallCountData[name] || null; }) ]); } |