ocrservice
Advanced tools
Comparing version 0.1.45 to 0.1.46
@@ -29,6 +29,10 @@ (function() { | ||
function CWatcherMaster(cluster, pathName, cpus) { | ||
function CWatcherMaster(cluster, pathName, cpus, quick) { | ||
var me, options; | ||
this.intervalTimeout = 1000; | ||
this.debug = false; | ||
if (typeof quick === 'undefined') { | ||
quick = false; | ||
} | ||
this.quick = quick; | ||
this.run = false; | ||
@@ -127,4 +131,8 @@ this.files = []; | ||
CWatcherMaster.prototype.onERPLoginSuccess = function(msg) { | ||
this.erp.fastaccess(); | ||
return debug('cmaster', 'login success'); | ||
debug('cmaster', 'login success'); | ||
if (this.quick) { | ||
return this.start(); | ||
} else { | ||
return this.erp.fastaccess(); | ||
} | ||
}; | ||
@@ -131,0 +139,0 @@ |
@@ -45,2 +45,5 @@ (function() { | ||
}, { | ||
parameter: "--quick", | ||
description: "quickstart no db update" | ||
}, { | ||
parameter: "-c,--cpus [cpus]", | ||
@@ -47,0 +50,0 @@ description: "how much cpus used for" |
@@ -13,3 +13,3 @@ { | ||
}, | ||
"version": "0.1.45", | ||
"version": "0.1.46", | ||
"engines": { | ||
@@ -16,0 +16,0 @@ "node": ">=0.12.0" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
185940
2976