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:
@ -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()
|
||||
|
||||
Reference in New Issue
Block a user