Skip to content

Commit

Permalink
check 30 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathaniel Moschkin committed Dec 6, 2023
1 parent eed1c75 commit e98c73b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/logic/telemetry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export async function createStats(force?: boolean) {
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 All @@ -98,14 +98,14 @@ export async function createStats(force?: boolean) {
fs.rmSync(dailyfile);
}
else {
setTimeout(() => createStats(), 1000 * 60 * 60);
setTimeout(() => createStats(), 1000 * 60 * 30);
return;
}
}

let result = await getVoyageStats();
fs.writeFileSync(dailyfile, JSON.stringify(result));
setTimeout(() => createStats(), 1000 * 60 * 60);
setTimeout(() => createStats(), 1000 * 60 * 30);
}

async function getVoyageStats() {
Expand Down

0 comments on commit e98c73b

Please sign in to comment.