Skip to content

Commit

Permalink
Check idle inReach less often
Browse files Browse the repository at this point in the history
  • Loading branch information
vicb committed Oct 14, 2024
1 parent 53eeb65 commit 3678bbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/fetcher/src/app/trackers/inreach.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,10 @@ export class InreachFetcher extends TrackerFetcher {
}
const lastFixAgeSec = Math.round(Date.now() / 1000) - tracker.lastFixSec;
if (lastFixAgeSec > 6 * 30 * 24 * 3600) {
return Math.floor(45 + Math.random() * 3) * 60;
return Math.floor(55 + Math.random() * 10) * 60;
}
if (lastFixAgeSec > 3 * 30 * 24 * 3600) {
return Math.floor(30 + Math.random() * 3) * 60;
return Math.floor(35 + Math.random() * 5) * 60;
}
if (lastFixAgeSec > 3 * 3600) {
return Math.floor(20 + Math.random() * 3) * 60;
Expand Down

0 comments on commit 3678bbd

Please sign in to comment.