Fetch logs in 30s windows
This commit is contained in:
parent
089f1eedb3
commit
b54749c83a
|
@ -1,6 +1,7 @@
|
|||
const subDays = require("date-fns/sub_days");
|
||||
const startOfDay = require("date-fns/start_of_day");
|
||||
const startOfSecond = require("date-fns/start_of_second");
|
||||
|
||||
const StatsAPI = require("../StatsAPI");
|
||||
|
||||
function showStats(req, res) {
|
||||
|
|
|
@ -21,7 +21,7 @@ const domainNames = [
|
|||
/**
|
||||
* The window of time to download in a single fetch.
|
||||
*/
|
||||
const logWindowSeconds = 60;
|
||||
const logWindowSeconds = 30;
|
||||
|
||||
/**
|
||||
* The minimum time to wait between fetches.
|
||||
|
|
Loading…
Reference in New Issue