Cherrypicking a couple of commits, merge-conflicts later, but I'll deal with it then.

This commit is contained in:
Alexander Blair
2017-07-01 20:47:38 -07:00
parent df94faab9b
commit 92740a4642
2 changed files with 40 additions and 4 deletions
+9
View File
@@ -4,6 +4,8 @@ const async = require('async');
function Database() {
let thread_id='';
this.sendQueue = async.queue(function (task, callback) {
async.doUntil(
function (intCallback) {
@@ -52,6 +54,13 @@ function Database() {
process.send({type: 'sendRemote', body: wsData.toString('hex')});
};
setInterval(function(queue_obj){
if (thread_id === '(Master) '){
console.log(global.database.thread_id + "Queue debug state: " + queue_obj.length() + " items in the queue " + queue_obj.running() + " items being processed");
}
}, 5000, this.sendQueue);
this.initEnv = function(){
this.data = null;
};