Skip to content

Commit

Permalink
Merge pull request #8 from jacogr/patch-2
Browse files Browse the repository at this point in the history
Fix daily limits, set to 20hr rolling window
  • Loading branch information
lsaether authored Jul 28, 2020
2 parents c19654c + 789f5e6 commit 2b12740
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/server/storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ const Datastore = require('nedb');
const crypto = require('crypto');

const SECOND = 1000;
const HOUR = 60 * SECOND;
const DAY = 24 * HOUR;
const MINUTE = 60 * SECOND;
const HOUR = 60 * MINUTE;
const DAY = 20 * HOUR; // almost 1 day, give some room for people missing their normal daily slots

const CompactionTimeout = 10 * SECOND;

Expand Down

0 comments on commit 2b12740

Please sign in to comment.