Commit 8f151042 authored by Vincent Pelletier's avatar Vincent Pelletier

Display site's overall summary as a table.

parent ba3a6033
...@@ -190,13 +190,11 @@ class GenericSiteStats(object): ...@@ -190,13 +190,11 @@ class GenericSiteStats(object):
apdex = APDEXStats(self.threshold) apdex = APDEXStats(self.threshold)
for data in self.apdex.itervalues(): for data in self.apdex.itervalues():
apdex.accumulateFrom(data) apdex.accumulateFrom(data)
append('<h2>Overall</h2><p>Hits: %i</p><p>Apdex: %i%%</p>' append('<h2>Overall</h2><table class="stats"><tr>')
'<p>Avg duration (s): %.2f</p><p>Max duration (s): %.2f</p>' % ( append(APDEX_TABLE_HEADERS)
apdex.hit, append('</tr><tr>')
apdex.getApdex() * 100, append(getApdexStatsAsHtml(apdex, self.threshold))
apdex.getAverage(), append('</tr></table>')
apdex.getMax(),
))
column_set = set() column_set = set()
filtered_status = defaultdict(partial(defaultdict, int)) filtered_status = defaultdict(partial(defaultdict, int))
for status, date_dict in self.status.iteritems(): for status, date_dict in self.status.iteritems():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment