Skip to content

Commit

Permalink
update knex, remove modifier_remove events from log
Browse files Browse the repository at this point in the history
  • Loading branch information
howardchung committed Jun 20, 2016
1 parent afa5e61 commit 41b115c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"http-proxy": "^1.13.1",
"jade": "^1.11.0",
"jquery": "^2.2.0",
"knex": "^0.10.0",
"knex": "^0.11.7",
"moment": "^2.11.2",
"multer": "^1.1.0",
"numeral": "^1.5.3",
Expand Down
4 changes: 4 additions & 0 deletions processors/processReduce.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ function processReduce(entries, match, meta)
{
return false;
}
if (e.type === "DOTA_COMBATLOG_MODIFIER_REMOVE")
{
return false;
}
if (e.type === "interval" && e.time % 60 !== 0)
{
return false;
Expand Down
4 changes: 2 additions & 2 deletions store/queries.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,9 @@ function insertMatch(db, redis, match, options, cb)
{
if (err)
{
return exit(err);
return cb(err);
}
async.eachLimit(match.logs, 100, function(e, cb)
async.eachLimit(match.logs, 10000, function(e, cb)
{
trx('match_logs').insert(e).asCallback(cb);
}, cb);
Expand Down

0 comments on commit 41b115c

Please sign in to comment.