Fix bug when empty record

This commit is contained in:
Hanjoung Lee
2016-03-22 16:57:43 +09:00
parent e10fe1f597
commit a8f57d6358
+2 -2
View File
@@ -111,13 +111,13 @@ $(document).ajaxStop(function () {
transInfo[date] = element['info'];
engines.forEach(function(engine, index) {
var sum = undefined; // default value
var max = undefined; // default value
var max = undefined; // default value
var maxTest = ''; // default value
var numTests = 0;
var benchmark_obj = element[benchmark];
if (benchmark_obj) {
var record = benchmark_obj[measureType][engine];
if (record) {
if (record && Object.keys(record).length > 0) {
sum = Object.sum(record);
maxTest = Object.maxKey(record);
max = record[maxTest];