Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Sebastien Robin
apachedex
Commits
a004f2cb
Commit
a004f2cb
authored
11 years ago
by
Vincent Pelletier
Browse files
Options
Download
Email Patches
Plain Diff
Color apdex column.
parent
a2bb7274
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
apachedex/__init__.py
apachedex/__init__.py
+6
-3
No files found.
apachedex/__init__.py
View file @
a004f2cb
...
...
@@ -294,9 +294,12 @@ class ERP5SiteStats(GenericSiteStats):
'<th>max (s)</th>'
)
append
(
'</tr>'
)
def
apdexStatsAsHtml
(
data
):
return
'<td>%i%%</td><td>%s</td><td class="%s">%.2f</td>'
\
'<td class="%s">%.2f</td>'
%
(
data
.
getApdex
()
*
100
,
apdex
=
data
.
getApdex
()
return
'<td style="color: #%s; background-color: #%s">%i%%</td>'
\
'<td>%s</td><td class="%s">%.2f</td><td class="%s">%.2f</td>'
%
(
(
apdex
<
.
5
and
'f'
or
'0'
)
*
3
,
(
'%x'
%
(
apdex
*
0xf
))
*
3
,
apdex
*
100
,
data
.
hit
,
getClassForDuration
(
data
.
getAverage
(),
self
.
threshold
),
data
.
getAverage
()
/
US_PER_S
,
...
...
This diff is collapsed.
Click to expand it.
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