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 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) {
|
||||||
|
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user