 				return -1
 			dirtyqueue = 0
 			workingSync = false
+			elapsed_getDocsCargo = ""
 			resyncQueue = ()->
 				if workingSync
 					return

						datalog.legauges[key][slot]++
					jobsDone = 0
					for ix of datalog.legauges[key]
						if now - parseInt(ix) > 300
							delete datalog.legauges[key][ix]
						else
							jobsDone += datalog.legauges[key][ix]

				else
					keys = []
					keys.push key for key in couch_toprocess
					#label = 'fetching ' + keys.length + ' docs'
					#console.time label
					start = process.hrtime()
					couchque.list {
						keys: keys
						include_docs: true
					}, (bulkerr, bulkbody) ->
						elapsed = process.hrtime(start)[1] / 1000000;
						elapsed_getDocsCargo = (if process.hrtime(start)[0] > 0 then "#{process.hrtime(start)[0]}s" else "") + "#{elapsed.toFixed(0)}ms"
						#console.timeEnd label
						if bulkerr
							console.log 'error while getting DB data', bulkerr
							setImmediate ->
