Skip to content

Commit

Permalink
Unref removed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Olegas committed Feb 16, 2015
1 parent 6d647f0 commit 4b5abd9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,10 @@ What does it mean?
------------------

In example above this means that in last 4 seconds 50% of events is "late" by 1025 microseconds (1.025ms), 90% is late by 1059 microseconds (1.059ms) and so on.

CHANGELOG
--------

### 0.1.0

Removed `.unref()` from scanning interval. From now on, module will hold process running, until `.stop()` is called.
4 changes: 0 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,6 @@ EventLoopMonitor.prototype.resume = function() {
ticks.length = 1;
}, 4 * 1000);

if (this._loopMonitor.unref) {
this._loopMonitor.unref();
this._counter.unref();
}
};

module.exports = new EventLoopMonitor();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "event-loop-monitor",
"version": "0.0.4",
"version": "0.1.0",
"description": "NodeJS event loop latency monitor",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 4b5abd9

Please sign in to comment.