Fetch logs in 30s windows

This commit is contained in:
Michael Jackson 2018-06-01 22:34:56 -07:00
parent 089f1eedb3
commit b54749c83a
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
const subDays = require("date-fns/sub_days"); const subDays = require("date-fns/sub_days");
const startOfDay = require("date-fns/start_of_day"); const startOfDay = require("date-fns/start_of_day");
const startOfSecond = require("date-fns/start_of_second"); const startOfSecond = require("date-fns/start_of_second");
const StatsAPI = require("../StatsAPI"); const StatsAPI = require("../StatsAPI");
function showStats(req, res) { function showStats(req, res) {

View File

@ -21,7 +21,7 @@ const domainNames = [
/** /**
* The window of time to download in a single fetch. * The window of time to download in a single fetch.
*/ */
const logWindowSeconds = 60; const logWindowSeconds = 30;
/** /**
* The minimum time to wait between fetches. * The minimum time to wait between fetches.