fix: don't generate a stat every second on minute 0 of every hour
This commit is contained in:
parent
925080f6a0
commit
bf10242180
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue