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
Arnaud Fontaine
apachedex
Commits
5476fbc9
Commit
5476fbc9
authored
Apr 05, 2013
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drop unused entries in getApdexData return value.
parent
fa2f04ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
apachedex/__init__.py
apachedex/__init__.py
+3
-4
No files found.
apachedex/__init__.py
View file @
5476fbc9
...
...
@@ -178,8 +178,7 @@ class GenericSiteStats(object):
for
data
in
self
.
apdex
.
itervalues
():
apdex
.
accumulateFrom
(
data
)
return
[
(
date
,
apdex
.
getApdex
()
*
100
,
apdex
.
getAverage
(),
apdex
.
getMax
(),
apdex
.
hit
)
for
date
,
apdex
(
date
,
apdex
.
getApdex
()
*
100
,
apdex
.
hit
)
for
date
,
apdex
in
sorted
(
self
.
apdex
.
iteritems
(),
key
=
ITEMGETTER0
)]
def
asHTML
(
self
,
stat_filter
=
lambda
x
:
x
):
...
...
@@ -615,7 +614,7 @@ def main():
minTickSize
=
(
max
(
1
,
(
date_list
[
-
1
]
-
date_list
[
0
])
/
(
60
*
60
*
1000
*
10
)),
'hour'
)
# 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
graph
(
'apdex'
,
[
zip
(
date_list
,
(
x
[
1
]
for
x
in
daily_data
))],
...
...
@@ -635,7 +634,7 @@ def main():
},
)
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'
:
{
'mode'
:
'time'
,
...
...
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