Skip to content

Commit

Permalink
Merge branch 'main' of github.com:stonegray/speedtest2ha
Browse files Browse the repository at this point in the history
  • Loading branch information
stonegray committed Oct 14, 2023
2 parents c714267 + 081c950 commit bd013ec
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/speedtest.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ async function runTest() {

}

if (!process.env.NO_TEST_ON_STARTUP){
await runTest();
console.log( "Initial test finished, waiting for next scheduled test");
} else {
console.log( "Skipping initial test, waiting for next scheduled test");
}


const runSchedule = process.env.CRON ?? "0 * * * *";
Expand Down

0 comments on commit bd013ec

Please sign in to comment.