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
Xiaowu Zhang
apachedex
Commits
37b59d04
Commit
37b59d04
authored
Apr 08, 2013
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5 stats: exclude "other" from graphs & overall apdex.
Include ERP5Site_viewSearchResult, though.
parent
607cd218
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
13 deletions
+1
-13
apachedex/__init__.py
apachedex/__init__.py
+1
-13
No files found.
apachedex/__init__.py
View file @
37b59d04
...
...
@@ -487,23 +487,11 @@ class ERP5SiteStats(GenericSiteStats):
len
(
split
)
>
1
and
(
split
[
1
]
!=
'view'
and
'_view'
not
in
split
[
1
])
][
date
].
accumulate
(
match
)
elif
split
and
split
[
0
]
==
'ERP5Site_viewSearchResult'
:
super
(
ERP5SiteStats
,
self
).
accumulate
(
match
,
url_match
,
date
)
self
.
site_search
[
date
].
accumulate
(
match
)
else
:
self
.
no_module
[
date
].
accumulate
(
match
)
def
getApdexData
(
self
):
asDict
=
lambda
apdex_data
:
dict
((
x
,
(
y
,
z
))
for
(
x
,
y
,
z
)
in
apdex_data
)
date_dict
=
asDict
(
super
(
ERP5SiteStats
,
self
).
getApdexData
())
for
date
,
(
apdex
,
hit
)
in
asDict
(
getDataPoints
(
self
.
no_module
)
).
iteritems
():
super_apdex
,
super_hit
=
date_dict
.
get
(
date
,
(
100
,
0
))
new_hit
=
hit
+
super_hit
if
super_hit
:
new_apdex
=
super_apdex
*
super_hit
/
new_hit
+
apdex
*
hit
/
new_hit
date_dict
[
date
]
=
(
new_apdex
,
new_hit
)
return
sorted
(((
date
,
apdex
,
hit
)
for
date
,
(
apdex
,
hit
)
in
date_dict
.
iteritems
()),
key
=
ITEMGETTER0
)
def
asHTML
(
self
,
date_format
,
placeholder_delta
,
graph_period
,
encoding
,
stat_filter
=
lambda
x
:
x
):
result
=
[]
...
...
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