0
0
Fork 0
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:
Kanishkar J 2018-10-03 14:51:26 +05:30 committed by Ryan Dahl
parent 545109cf2d
commit 3f1899fc46

View file

@ -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;
})
]);
}