fix: don't generate a stat every second on minute 0 of every hour

This commit is contained in:
Zephyrrus 2021-01-08 00:01:11 +02:00
parent 925080f6a0
commit bf10242180
1 changed files with 1 additions and 1 deletions

View File

@ -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() {