General refactor of the log generator so that it will finally create indexes for all of the events it creates. It should also perform a smidge better, but the real bottleneck is the event creation.

This commit is contained in:
Spencer Alger
2014-03-03 10:36:56 -07:00
parent 66a399d623
commit afd628c70d
2 changed files with 100 additions and 110 deletions

View File

@ -9,18 +9,6 @@ exports.make = function (startingMoment, endingMoment) {
var sets = {};
sets.days = (function () {
var days = [];
var moving = startingMoment.clone();
while (moving <= endingMoment) {
days.push(moving.clone());
moving.add('day', 1);
}
return days;
}());
sets.randomMsInDayRange = new Stochator({
min: startingMoment.toDate().getTime(),
max: endingMoment.toDate().getTime()