Skip to content

Commit

Permalink
Update build.js
Browse files Browse the repository at this point in the history
  • Loading branch information
sideroad committed Jul 29, 2014

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 00f1e3e commit 633873c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/build.js
Original file line number Diff line number Diff line change
@@ -30903,7 +30903,7 @@ require.register("grunt-wpt-page/index.js", function(exports, require, module){
var obj = {};
var tmp = 0;
_.each(test.response.data.median[view+'View'].breakdown, function(val, key){
obj[key] = ( val.bytes / 1000).toFixed(1);
obj[key] = ( (val.bytes||0) / 1000).toFixed(1);
tmp += Number(obj[key]);
});
obj.total = _.reduce(obj, function(memo, val, key){
@@ -30923,7 +30923,7 @@ require.register("grunt-wpt-page/index.js", function(exports, require, module){
var obj = {};
var tmp = 0;
_.each(test.response.data.median[view+'View'].breakdown, function(val, key){
obj[key] = Number(val.requests);
obj[key] = Number(val.requests||0);
});
obj.total = _.reduce(obj, function(memo, val, key){
return memo + Number(val||0);

0 comments on commit 633873c

Please sign in to comment.