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):
apdex = APDEXStats(self.threshold)
for data in self.apdex.itervalues():
apdex.accumulateFrom(data)
append('<h2>Overall</h2><p>Hits: %i</p><p>Apdex: %i%%</p>'
'<p>Avg duration (s): %.2f</p><p>Max duration (s): %.2f</p>' % (
apdex.hit,
apdex.getApdex() * 100,
apdex.getAverage(),
apdex.getMax(),
))
append('<h2>Overall</h2><table class="stats"><tr>')
append(APDEX_TABLE_HEADERS)
append('</tr><tr>')
append(getApdexStatsAsHtml(apdex, self.threshold))
append('</tr></table>')
column_set = set()
filtered_status = defaultdict(partial(defaultdict, int))
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