Commit 5476fbc9 authored by Vincent Pelletier's avatar Vincent Pelletier

Drop unused entries in getApdexData return value.

parent fa2f04ba
...@@ -178,8 +178,7 @@ class GenericSiteStats(object): ...@@ -178,8 +178,7 @@ class GenericSiteStats(object):
for data in self.apdex.itervalues(): for data in self.apdex.itervalues():
apdex.accumulateFrom(data) apdex.accumulateFrom(data)
return [ return [
(date, apdex.getApdex() * 100, apdex.getAverage(), (date, apdex.getApdex() * 100, apdex.hit) for date, apdex
apdex.getMax(), apdex.hit) for date, apdex
in sorted(self.apdex.iteritems(), key=ITEMGETTER0)] in sorted(self.apdex.iteritems(), key=ITEMGETTER0)]
def asHTML(self, stat_filter=lambda x: x): def asHTML(self, stat_filter=lambda x: x):
...@@ -615,7 +614,7 @@ def main(): ...@@ -615,7 +614,7 @@ def main():
minTickSize = (max(1, minTickSize = (max(1,
(date_list[-1] - date_list[0]) / (60 * 60 * 1000 * 10)), 'hour') (date_list[-1] - date_list[0]) / (60 * 60 * 1000 * 10)), 'hour')
# Guesstimation: 6px per digit. If only em were allowed... # Guesstimation: 6px per digit. If only em were allowed...
yLabelWidth = max(int(math.log10(max(x[4] for x in daily_data))) + 1, yLabelWidth = max(int(math.log10(max(x[2] for x in daily_data))) + 1,
3) * 6 3) * 6
graph('apdex', graph('apdex',
[zip(date_list, (x[1] for x in daily_data))], [zip(date_list, (x[1] for x in daily_data))],
...@@ -635,7 +634,7 @@ def main(): ...@@ -635,7 +634,7 @@ def main():
}, },
) )
graph('Hits (per %s)' % graph_period, graph('Hits (per %s)' % graph_period,
[zip(date_list, (x[4] for x in daily_data))], [zip(date_list, (x[2] for x in daily_data))],
{ {
'xaxis': { 'xaxis': {
'mode': 'time', 'mode': 'time',
......
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