 						#console.log output.join(" | "), output.length,".--"
 						#process.stdout.clearLine()
 						output.push "zmq : " + s_wk._zmq.pending
-						output.push "mem : " + (if os.freemem() < (config.minMem * 1048576) then "Ok" else "notOk")
+						output.push "mem : " + (if os.freemem() > (config.minMem * 1048576) then "Ok" else "notOk")
 						if canprogress
 							process.stdout.cursorTo(60)
 							process.stdout.write output.join(" | ")

									currentjob._otherhost[host] = true
								else
									console.log jobId,currentjob._takenby, "->",host if currentjob._takenby?
									if currentjob._status is "onqueue" then forceQueuereSync = true
									currentjob._takenby = host
									currentjob._status = "working"
									currentjob._lastchange = ~~((new Date).getTime() / 1000)

									doc._status = "tosend"
									doc._lastchange = ~~((new Date).getTime() / 1000)
									index = findplace(doc._id)
									if workque[index]._status is "fetching"
										workque[index] = doc
									else
										#it was a gosth job
