mirror of
https://gitlab.silvrtree.co.uk/martind2000/nci.git
synced 2025-02-10 17:49:17 +00:00
fix high cpu usage at start by set watcher depth
This commit is contained in:
parent
470a91e6b0
commit
d3f5201968
@ -49,7 +49,7 @@ exports.init = function(app, callback) {
|
||||
// not be emitted
|
||||
var watcher = chokidar.watch(
|
||||
path.join(app.config.paths.projects, '*', 'config.*'),
|
||||
{ignoreInitial: true}
|
||||
{ignoreInitial: true, depth: 1}
|
||||
);
|
||||
watcher.on('add', syncProject);
|
||||
watcher.on('change', syncProject);
|
||||
|
Loading…
Reference in New Issue
Block a user