Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
apachedex
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
apachedex
Commits
8f151042
Commit
8f151042
authored
Apr 04, 2013
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Display site's overall summary as a table.
parent
ba3a6033
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
apachedex/__init__.py
apachedex/__init__.py
+5
-7
No files found.
apachedex/__init__.py
View file @
8f151042
...
...
@@ -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
():
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment