mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 09:31:22 -05:00
Hide line with value zero (#882)
This commit is contained in:
parent
545109cf2d
commit
3f1899fc46
1 changed files with 7 additions and 7 deletions
|
@ -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;
|
||||
})
|
||||
]);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue