         average_pending_time: Math.round(statistics.total_pending_time * 100 / statistics.finished) / 100
         average_processing_time: Math.round(statistics.total_processing_time * 100 / statistics.finished) / 100
         blocked: {}
-      if not result.finished_tasks
+        processing_tasks: multi_res[2]
+        failed_tasks: multi_res[3]
+        workers: multi_res[5]
+      if result.finished_tasks is 0
         result.average_pending_time = '-'
         result.average_processing_time = '-'
-      result.processing_tasks = multi_res[2]
-      result.failed_tasks = multi_res[3]
-      result.workers = multi_res[5]
 
       # Calculate blocked and pending tasks:
       # 

  # **Usage:**
  #
  #     queue.workers (workers) -> YOUR CODE HERE
  workers: (callback) ->
    @redis.hvals @key('WORKERS'), (err, res) ->
      callback err if err
      callback null, res.map (entry) ->
        entry = entry.split '|'
        host: entry[0]

  #
  #     fairy.statistics (stats) ->
  #       console.log "Stats of #{stats.length} queues: ", stats
  statistics: (callback) =>
    @queues (queues) ->
      return callback [] unless total_queues = queues.length
      result = []
      for queue, i in queues
        do (queue, i) ->
          queue.statistics (err, statistics) ->
            return callback err if err
            result[i] = statistics
            callback null, result if callback unless --total_queues

# ## Class Queue

