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
278332c9
Commit
278332c9
authored
Apr 07, 2013
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix ponderated average computation
Also, fix default value inversion.
parent
157f4ca6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
apachedex/__init__.py
apachedex/__init__.py
+2
-2
No files found.
apachedex/__init__.py
View file @
278332c9
...
@@ -455,10 +455,10 @@ class ERP5SiteStats(GenericSiteStats):
...
@@ -455,10 +455,10 @@ class ERP5SiteStats(GenericSiteStats):
date_dict
=
asDict
(
super
(
ERP5SiteStats
,
self
).
getApdexData
())
date_dict
=
asDict
(
super
(
ERP5SiteStats
,
self
).
getApdexData
())
for
date
,
(
apdex
,
hit
)
in
asDict
(
getDataPoints
(
self
.
no_module
)
for
date
,
(
apdex
,
hit
)
in
asDict
(
getDataPoints
(
self
.
no_module
)
).
iteritems
():
).
iteritems
():
super_apdex
,
super_hit
=
date_dict
.
get
(
date
,
(
0
,
10
0
))
super_apdex
,
super_hit
=
date_dict
.
get
(
date
,
(
100
,
0
))
new_hit
=
hit
+
super_hit
new_hit
=
hit
+
super_hit
if
super_hit
:
if
super_hit
:
new_apdex
=
super_apdex
*
new_hit
/
super_hit
+
apdex
*
new_hit
/
hit
new_apdex
=
super_apdex
*
super_hit
/
new_hit
+
apdex
*
hit
/
new_
hit
date_dict
[
date
]
=
(
new_apdex
,
new_hit
)
date_dict
[
date
]
=
(
new_apdex
,
new_hit
)
return
sorted
(((
date
,
apdex
,
hit
)
return
sorted
(((
date
,
apdex
,
hit
)
for
date
,
(
apdex
,
hit
)
in
date_dict
.
iteritems
()),
key
=
ITEMGETTER0
)
for
date
,
(
apdex
,
hit
)
in
date_dict
.
iteritems
()),
key
=
ITEMGETTER0
)
...
...
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