Skip to content

Commit

Permalink
Improved watcher interval for a long-term process.
Browse files Browse the repository at this point in the history
  • Loading branch information
petersirka committed Aug 5, 2024
1 parent a6f757b commit 84250c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- unified debug and release mode
- they use monitoring files
- monitoring can be disabled via `options.watcher = false` in the start script
- improved watcher interval for a long-term process

========================
0.0.5
Expand Down
3 changes: 2 additions & 1 deletion debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,8 @@ function runwatching() {

reload && livereload(LIVERELOADCHANGE);
if (counter % 150 === 0)
speed = isRELOAD ? 3000 : 6000;
speed = isRELOAD ? 3000 : (counter % 750 === 0 ? 30000 : 6000);

setTimeout(refresh_directory, speed);
return;
}
Expand Down

0 comments on commit 84250c8

Please sign in to comment.