diff --git a/scrapy/contrib/webconsole/livestats.py b/scrapy/contrib/webconsole/livestats.py
index 0fe8b84f0..7b338ccea 100644
--- a/scrapy/contrib/webconsole/livestats.py
+++ b/scrapy/contrib/webconsole/livestats.py
@@ -49,28 +49,30 @@ class LiveStats(object):
sch = scrapyengine.scheduler
dwl = scrapyengine.downloader
- totdomains = totscraped = totcrawled = totscheduled = totactive = totpending = 0
+ totdomains = totscraped = totcrawled = totscheduled = totactive = totpending = totdqueued = tottransf = 0
s = banner(self)
s += "
\n"
- s += "| Domain | Items Scraped | Pages Crawled | Scheduler Pending | Downloader Pending | Downloader Active | Start time | Finish time | Run time |
\n"
+ s += "| Domain | Items Scraped | Pages Crawled | Scheduler Pending | Downloader Queued | Downloader Active | Downloader Transferring | Start time | Finish time | Run time |
\n"
for d in sorted(self.domains.keys()):
scheduled = len(sch.pending_requests[d]) if d in sch.pending_requests else 0
active = len(dwl.sites[d].active) if d in dwl.sites else 0
- pending = len(dwl.sites[d].queue) if d in dwl.queue else 0
+ dqueued = len(dwl.sites[d].queue) if d in dwl.sites else 0
+ transf = len(dwl.sites[d].transferring) if d in dwl.sites else 0
stats = self.domains[d]
runtime = stats.finished - stats.started if stats.finished else datetime.now() - stats.started
- s += '| %s | %d | %d | %d | %d | %d | %s | %s | %s |
\n' % \
- (d, stats.scraped, stats.crawled, scheduled, pending, active, str(stats.started), str(stats.finished), str(runtime))
+ s += '| %s | %d | %d | %d | %d | %d | %d | %s | %s | %s |
\n' % \
+ (d, stats.scraped, stats.crawled, scheduled, dqueued, active, transf, str(stats.started), str(stats.finished), str(runtime))
totdomains += 1
totscraped += stats.scraped
totcrawled += stats.crawled
totscheduled += scheduled
totactive += active
- totpending += pending
- s += '| %d domains | %d | %d | %d | %d | %d | | |
\n' % \
- (totdomains, totscraped, totcrawled, totscheduled, totactive, totpending)
+ totdqueued += dqueued
+ tottransf += transf
+ s += '| %d domains | %d | %d | %d | %d | %d | %d | | |
\n' % \
+ (totdomains, totscraped, totcrawled, totscheduled, totdqueued, totactive, tottransf)
s += "
\n"
s += "