Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[dist] Remove microtime dependency

  • Loading branch information...
commit 485a18bc4a3f42fbff3fbf422b1272f8a3ece535 1 parent 45a7e51
Charlie McConnell AvianFlu authored
Showing with 3 additions and 5 deletions.
  1. +2 −3 lib/forever/worker.js
  2. +1 −2  package.json
5 lib/forever/worker.js
View
@@ -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);
@@ -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('.'));
3  package.json
View
@@ -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",
@@ -51,7 +50,7 @@
"test": "vows test/**/*-test.js --spec -i"
},
"engines": {
- "node": ">= 0.4.8"
+ "node": ">= 0.6.0"
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.