Skip to content

Commit

Permalink
parametrize check interval
Browse files Browse the repository at this point in the history
  • Loading branch information
jafl committed Nov 15, 2012
1 parent 14407d7 commit de8a0e6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions server/game.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
"use strict";

var mod_bw_util = require('./util'),
game_cull_interval = 24 * 3600 * 1000, // 1 day (ms)
game_count = 0,
var mod_bw_util = require('./util'),
game_cull_interval = 24 * 3600 * 1000, // 1 day (ms)
game_check_interval = 3600 * 1000, // 1 hour (ms)
game_count = 0,

Y;

Expand Down Expand Up @@ -33,7 +34,7 @@ exports.init = function(
game_count--;
});
},
3600 * 1000); // 1 hour (ms)
game_check_interval);

return games;
};
Expand Down

0 comments on commit de8a0e6

Please sign in to comment.