@smarterservices/smarterclock
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -46,8 +46,5 @@ var smarterClock = function (config) { | ||
//get sum of this.delta array | ||
if(this.delta.length === 0) { | ||
return new Date().getTime(); | ||
} | ||
var sum = this.delta.reduce(function (a, b) { | ||
return a + b; | ||
}); | ||
},0); | ||
//get avg delta of your local time compared to ntp time | ||
@@ -54,0 +51,0 @@ var avg = Math.round(sum / this.delta.length); |
{ | ||
"name": "@smarterservices/smarterclock", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "store of delta values between ntp time and local time to get an accurate sync time", | ||
@@ -14,5 +14,3 @@ "main": "index.js", | ||
], | ||
"author": { | ||
"name": "jordan l piepkow" | ||
}, | ||
"author": "jordan l piepkow", | ||
"dependencies": { | ||
@@ -23,47 +21,4 @@ "ntp-client": "^0.5.3" | ||
"type": "git", | ||
"url": "git+https://github.com/SmarterServices/smarterclock.git" | ||
}, | ||
"gitHead": "e2eebc484764837c81224f7a273648992edc36fc", | ||
"bugs": { | ||
"url": "https://github.com/SmarterServices/smarterclock/issues" | ||
}, | ||
"homepage": "https://github.com/SmarterServices/smarterclock#readme", | ||
"_id": "@smarterservices/smarterclock@1.0.7", | ||
"_shasum": "7affaaee2a97acaf60eb069d9dc8fd438049133a", | ||
"_from": "@smarterservices/smarterclock@1.0.7", | ||
"_npmVersion": "3.3.12", | ||
"_nodeVersion": "5.1.0", | ||
"_npmUser": { | ||
"name": "smarterservicesdev", | ||
"email": "jason@smarterservices.com" | ||
}, | ||
"dist": { | ||
"shasum": "7affaaee2a97acaf60eb069d9dc8fd438049133a", | ||
"tarball": "https://registry.npmjs.org/@smarterservices/smarterclock/-/smarterclock-1.0.7.tgz" | ||
}, | ||
"maintainers": [ | ||
{ | ||
"name": "jasonfill", | ||
"email": "jasonfill@gmail.com" | ||
}, | ||
{ | ||
"name": "jpiepkow", | ||
"email": "jpiepkow@gmail.com" | ||
}, | ||
{ | ||
"name": "sajid.sharlemin", | ||
"email": "sajid@smarterservices.com" | ||
}, | ||
{ | ||
"name": "smarterservicesdev", | ||
"email": "jason@smarterservices.com" | ||
} | ||
], | ||
"_npmOperationalInternal": { | ||
"host": "packages-16-east.internal.npmjs.com", | ||
"tmp": "tmp/smarterclock-1.0.7.tgz_1463514237491_0.4705300342757255" | ||
}, | ||
"directories": {}, | ||
"_resolved": "https://registry.npmjs.org/@smarterservices/smarterclock/-/smarterclock-1.0.7.tgz", | ||
"readme": "ERROR: No README data found!" | ||
"url": "https://github.com/SmarterServices/smarterclock.git" | ||
} | ||
} |
@@ -12,2 +12,2 @@ var smarterclock = require('./index.js'); | ||
console.log('SyncTime:' + syncTime + ' vs LocalTime: ' + localTime + ' Difference: ' + drift + 'ms'); | ||
},5000); | ||
},5000); |
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
7225
89