Skip to content
This repository was archived by the owner on Feb 7, 2023. It is now read-only.

Commit f591bd8

Browse files
committed
give the CPU a rest every now & then when watching
1 parent d023ed6 commit f591bd8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

builder/lib/watcher.lib.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,9 @@ public function watch() {
198198
unset($this->msf);
199199
if (gc_enabled()) gc_collect_cycles();
200200

201+
// pause for .05 seconds to give the CPU a rest
202+
usleep(50000);
203+
201204
}
202205

203206
}

0 commit comments

Comments
 (0)