Skip to content

Commit

Permalink
[dist] Remove microtime dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
AvianFlu committed Jun 26, 2012
1 parent 45a7e51 commit 485a18b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions lib/forever/worker.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
var events = require('events'),
fs = require('fs'),
path = require('path'),
microtime = require('microtime'),
nssocket = require('nssocket'),
utile = require('utile'),
forever = require('../forever');
forever = require(path.resolve('..', 'forever'));

var Worker = exports.Worker = function (options) {
events.EventEmitter.call(this);
Expand Down Expand Up @@ -107,7 +106,7 @@ Worker.prototype.start = function (callback) {
//
var sock = self._sockFile = path.join(self.sockPath, [
'worker',
microtime.nowStruct().join(''),
new Date().getTime() + utile.randomString(3),
'sock'
].join('.'));

Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"cliff": "0.x.x",
"daemon": "0.5.x",
"flatiron": "0.1.x",
"microtime": "0.2.x",
"minimatch": "0.2.x",
"nconf": "0.5.x",
"nssocket": "0.3.x",
Expand All @@ -51,7 +50,7 @@
"test": "vows test/**/*-test.js --spec -i"
},
"engines": {
"node": ">= 0.4.8"
"node": ">= 0.6.0"
}
}

0 comments on commit 485a18b

Please sign in to comment.