From bf1024218065dd7407beaacaebfbf6f860e6fde0 Mon Sep 17 00:00:00 2001 From: Zephyrrus Date: Fri, 8 Jan 2021 00:01:11 +0200 Subject: fix: don't generate a stat every second on minute 0 of every hour --- src/api/structures/Server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/api/structures/Server.js') diff --git a/src/api/structures/Server.js b/src/api/structures/Server.js index cb97dd1..446c621 100644 --- a/src/api/structures/Server.js +++ b/src/api/structures/Server.js @@ -103,7 +103,7 @@ class Server { createJobs() { // TODO: move into the database config. (we can just show the crontab line for start, later on we can add dropdowns and stuff) - this.jobs.stats = new CronJob('* 0 * * * *', Util.saveStatsToDb, null, true); + this.jobs.stats = new CronJob('0 0 * * * *', Util.saveStatsToDb, null, true); } start() { -- cgit v1.2.3