aboutsummaryrefslogtreecommitdiff
path: root/src/api/structures
diff options
context:
space:
mode:
authorZephyrrus <[email protected]>2021-01-08 00:01:11 +0200
committerZephyrrus <[email protected]>2021-01-08 00:01:11 +0200
commitbf1024218065dd7407beaacaebfbf6f860e6fde0 (patch)
tree857371931465866d4885c603696608c208d1a8d1 /src/api/structures
parentchore: refactor stats generator to use an enum for types (diff)
downloadhost.fuwn.me-bf1024218065dd7407beaacaebfbf6f860e6fde0.tar.xz
host.fuwn.me-bf1024218065dd7407beaacaebfbf6f860e6fde0.zip
fix: don't generate a stat every second on minute 0 of every hour
Diffstat (limited to 'src/api/structures')
-rw-r--r--src/api/structures/Server.js2
1 files changed, 1 insertions, 1 deletions
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() {