diff options
| author | Zephyrrus <[email protected]> | 2021-01-08 00:01:11 +0200 |
|---|---|---|
| committer | Zephyrrus <[email protected]> | 2021-01-08 00:01:11 +0200 |
| commit | bf1024218065dd7407beaacaebfbf6f860e6fde0 (patch) | |
| tree | 857371931465866d4885c603696608c208d1a8d1 /src/api/structures | |
| parent | chore: refactor stats generator to use an enum for types (diff) | |
| download | host.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.js | 2 |
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() { |