Commits

Gregory Petukhov  committed ac8ccd2

Fix Spider.render_stats method

  • Participants
  • Parent commits ec364b5

Comments (0)

Files changed (1)

File grab/spider/stat.py

         out.append('  %s' % '\n  '.join('%s: %s' % x for x in items))
 
         total_time = time.time() - self.start_time
-        out.append('Queue size: %d' % self.taskq.qsize())
+        out.append('Queue size: %d' % self.taskq.size())
         out.append('Threads: %d' % self.thread_number)
         out.append('DOM build time: %.3f' % GLOBAL_STATE['dom_build_time'])
         out.append('Time: %.2f sec' % total_time)