Skip to content

Commit ec48dab

Browse files
author
Ross Kukulinski
committed
Remove node-toobusy
1 parent 911fc33 commit ec48dab

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

lib/health.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
var AstiError = require('./error')();
22
var _ = require('underscore');
33
var memwatch = require('memwatch');
4-
//var toobusy = require('toobusy');
54

65
module.exports = function(config) {
76
return new Monitor(config);
@@ -35,7 +34,6 @@ var Monitor = function Monitor(config) {
3534
this._logger = config.logger.child({widget_type: 'health'});
3635
}
3736
this._interval = config.interval || 2000;
38-
this._lag = config.lag;
3937
this._mem = config.mem;
4038
this._monitorEventLoop();
4139
this._monitorLeaks();
@@ -50,7 +48,7 @@ Monitor.prototype.stopMonitoring = function stopMonitoring() {
5048

5149
Monitor.prototype._monitorLeaks = function _monitorLeaks() {
5250
if (this._mem) {
53-
memwatch.on('leak', function leak(stat) {
51+
memwatch.on('leak', function leak() {
5452
if (this._stats) {
5553
this._stats.increment('leak');
5654
}
@@ -75,9 +73,6 @@ Monitor.prototype._stat = function _stat(value, key) {
7573
Monitor.prototype._monitorEventLoop = function _monitorEventLoop() {
7674
var trackMetrics = function trackMetrics() {
7775
var metrics = {};
78-
if (this._lag) {
79-
//metrics.lag = toobusy.lag();
80-
}
8176
if (this._mem) {
8277
var memory = process.memoryUsage();
8378
metrics.rss = memory.rss;

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "node-asti",
3-
"version": "0.1.4",
3+
"version": "0.2.0",
44
"description": "ASTi internal nodejs library for reusability",
55
"main": "index.js",
66
"directories": {
@@ -32,7 +32,6 @@
3232
"nodemailer": "~0.6.1",
3333
"swig": "~1.3.2",
3434
"underscore": "~1.5.2",
35-
"toobusy": "~0.2.4",
3635
"eventemitter2": "~0.4.13",
3736
"memwatch": "~0.2.2"
3837
},

0 commit comments

Comments
 (0)