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

Commit 0c528fb

Browse files
committed
Merge branch 'release-0.3.6'
2 parents d023ed6 + 1b24b41 commit 0c528fb

File tree

5 files changed

+11
-4
lines changed

5 files changed

+11
-4
lines changed

CHANGELOG

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
THIS CHANGELOG IS AN ATTEMPT TO DOCUMENT CHANGES TO THIS PROJECT.
22

3+
PL-v0.3.6
4+
- FIX: added a delay to the watcher so the CPU doesn't get maxed
5+
- THX: thanks to martin berglund for the heads up
6+
37
PL-v0.3.5
48
- ADD: an explicit MIT license
59
- FIX: updated .gitignore so that it's more flexible

builder/builder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/*!
4-
* Pattern Lab Builder CLI - v0.3.5
4+
* Pattern Lab Builder CLI - v0.3.6
55
*
66
* Copyright (c) 2013 Dave Olsen, http://dmolsen.com
77
* Licensed under the MIT license

builder/lib/builder.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/*!
4-
* Pattern Lab Builder Class - v0.3.5
4+
* Pattern Lab Builder Class - v0.3.6
55
*
66
* Copyright (c) 2013 Dave Olsen, http://dmolsen.com
77
* Licensed under the MIT license

builder/lib/generator.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/*!
4-
* Pattern Lab Generator Class - v0.3.5
4+
* Pattern Lab Generator Class - v0.3.6
55
*
66
* Copyright (c) 2013 Dave Olsen, http://dmolsen.com
77
* Licensed under the MIT license

builder/lib/watcher.lib.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/*!
4-
* Pattern Lab Watcher Class - v0.3.5
4+
* Pattern Lab Watcher Class - v0.3.6
55
*
66
* Copyright (c) 2013 Dave Olsen, http://dmolsen.com
77
* Licensed under the MIT license
@@ -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)