From 41fcb8b204418553911739e631c99a583c0d04a1 Mon Sep 17 00:00:00 2001 From: Bradley Matusiak Date: Fri, 7 Mar 2014 03:03:04 -0500 Subject: [PATCH 1/3] Update varDiff.js --- lib/varDiff.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/varDiff.js b/lib/varDiff.js index f233584..9e1e696 100644 --- a/lib/varDiff.js +++ b/lib/varDiff.js @@ -54,7 +54,7 @@ var varDiff = module.exports = function varDiff(ports){ var variance = varDiffOptions.targetTime * (varDiffOptions.variancePercent / 100); - portsCalcInfo[parseInt(ports)] = { + portsCalcInfo[parseInt(port)] = { bufferSize: varDiffOptions.retargetTime / varDiffOptions.targetTime * 4, tMin: varDiffOptions.targetTime - variance, tMax: varDiffOptions.targetTime + variance @@ -127,4 +127,4 @@ var varDiff = module.exports = function varDiff(ports){ }); }; }; -varDiff.prototype.__proto__ = events.EventEmitter.prototype; \ No newline at end of file +varDiff.prototype.__proto__ = events.EventEmitter.prototype; From 80658e8824cb2ca9daebc9ac4121aeb2688f1ce6 Mon Sep 17 00:00:00 2001 From: Bradley Matusiak Date: Fri, 7 Mar 2014 03:31:18 -0500 Subject: [PATCH 2/3] Update varDiff.js options where not defined.. turned out its under key in ports object --- lib/varDiff.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/varDiff.js b/lib/varDiff.js index 9e1e696..116af32 100644 --- a/lib/varDiff.js +++ b/lib/varDiff.js @@ -74,7 +74,7 @@ var varDiff = module.exports = function varDiff(ports){ return; var calcInfo = portsCalcInfo[stratumPort]; - var options = ports[stratumPort]; + var options = ports[stratumPort].varDiff; var lastTs; var lastRtc; From 0140421a2bd04e4ad9e82115adbb5affebb85129 Mon Sep 17 00:00:00 2001 From: Andrea Baccega Date: Fri, 7 Mar 2014 14:23:06 +0100 Subject: [PATCH 3/3] Update package.json Removed unused stuff that were preventing the compilation of the module --- package.json | 3 --- 1 file changed, 3 deletions(-) diff --git a/package.json b/package.json index e9f522e..a327c44 100644 --- a/package.json +++ b/package.json @@ -7,9 +7,6 @@ "vekexasia", "TheSeven" ], - "bin": { - "block-notify": "./scripts/blockNotify.js" - }, "main": "lib/index.js", "repository": { "type": "git",