From 5d82ae0f8276b0593fb250d2e0ece33ebd6eb6ee Mon Sep 17 00:00:00 2001 From: c9s Date: Thu, 22 May 2014 21:57:33 +0800 Subject: [PATCH] Fix benchmark rendering --- bench.html | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/bench.html b/bench.html index 7c44179..c0a3de5 100644 --- a/bench.html +++ b/bench.html @@ -139,15 +139,14 @@ $(lines).each(function(i,line) { var columns = line.split(/,/); var a; - if (a = parseInt(columns[1])) { - options.series[0].data.push(a || 0); - } - if (a = parseInt(columns[2])) { - options.series[1].data.push(a || 0); - } - if (a = parseInt(columns[3])) { - options.series[2].data.push(a || 0); - } + a = parseInt(columns[1]); + options.series[0].data.push(a || 0); + + a = parseInt(columns[2]); + options.series[1].data.push(a || 0); + + a = parseInt(columns[3]); + options.series[2].data.push(a || 0); }); $('#chart').highcharts(options);