Skip to content

Commit

Permalink
check on the hour
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathaniel Moschkin committed Dec 6, 2023
1 parent 2afc072 commit eed1c75
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/logic/telemetry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ export async function loadStats() {

export async function createStats(force?: boolean) {
let mynow = new Date();
mynow.setMinutes(0);
mynow.setSeconds(0);
mynow.setMilliseconds(0);

let path = `${process.env.PROFILE_DATA_PATH}/stats`;
if (!fs.existsSync(path)) {
fs.mkdirSync(path);
Expand Down

0 comments on commit eed1c75

Please sign in to comment.