1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-29 16:30:56 -05:00

Fix max_latency benchmark on zero value (#2247)

This commit is contained in:
Ryan Dahl 2019-04-30 10:42:36 -07:00 committed by GitHub
parent 200bed9277
commit 474d47e841
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -145,7 +145,7 @@ function generate(
delete yAxis.min; delete yAxis.min;
for (let col of columns) { for (let col of columns) {
for (let i = 1; i < col.length; i++) { for (let i = 1; i < col.length; i++) {
if (col[i] == null) { if (col[i] == null || col[i] === 0) {
continue; continue;
} }
col[i] = Math.log10(col[i] * TimeScaleFactor); col[i] = Math.log10(col[i] * TimeScaleFactor);