Skip to content

Commit 485a18b

Browse files
committed
[dist] Remove microtime dependency
1 parent 45a7e51 commit 485a18b

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

lib/forever/worker.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
var events = require('events'),
22
fs = require('fs'),
33
path = require('path'),
4-
microtime = require('microtime'),
54
nssocket = require('nssocket'),
65
utile = require('utile'),
7-
forever = require('../forever');
6+
forever = require(path.resolve('..', 'forever'));
87

98
var Worker = exports.Worker = function (options) {
109
events.EventEmitter.call(this);
@@ -107,7 +106,7 @@ Worker.prototype.start = function (callback) {
107106
//
108107
var sock = self._sockFile = path.join(self.sockPath, [
109108
'worker',
110-
microtime.nowStruct().join(''),
109+
new Date().getTime() + utile.randomString(3),
111110
'sock'
112111
].join('.'));
113112

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
"cliff": "0.x.x",
2525
"daemon": "0.5.x",
2626
"flatiron": "0.1.x",
27-
"microtime": "0.2.x",
2827
"minimatch": "0.2.x",
2928
"nconf": "0.5.x",
3029
"nssocket": "0.3.x",
@@ -51,7 +50,7 @@
5150
"test": "vows test/**/*-test.js --spec -i"
5251
},
5352
"engines": {
54-
"node": ">= 0.4.8"
53+
"node": ">= 0.6.0"
5554
}
5655
}
5756

0 commit comments

Comments
 (0)