Skip to content

Commit

Permalink
idea of the fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Fenex committed Aug 22, 2015
1 parent 8436297 commit 6062c52
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion scripts/StatisticsAvgResults.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,19 @@ function main () {

var speed = 0;
var errors = 0;
var results = scope.Plain.dataTables.table.Lf;
var table = scope.Plain.dataTables.table;
var results = null;

for(var key in table) {
if(table[key] && table[key][0] && table[key][0]['c']) {
results = table[key];
break;
}
}

if(!results)
return;

for(var i=0; i<results.length; i++) {
speed += results[i]['c'][4].v;
errors += results[i]['c'][7].v;
Expand Down

0 comments on commit 6062c52

Please sign in to comment.