Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
francois
erp5
Commits
3026d87e
Commit
3026d87e
authored
Aug 21, 2013
by
Benjamin Blanc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_test_result: Fix bug in the graph generation script
parent
2432aac4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
bt5/erp5_test_result/SkinTemplateItem/portal_skins/erp5_test_result/test_result_graph.html.xml
.../portal_skins/erp5_test_result/test_result_graph.html.xml
+9
-3
bt5/erp5_test_result/bt/revision
bt5/erp5_test_result/bt/revision
+1
-1
No files found.
bt5/erp5_test_result/SkinTemplateItem/portal_skins/erp5_test_result/test_result_graph.html.xml
View file @
3026d87e
...
@@ -6,6 +6,12 @@
...
@@ -6,6 +6,12 @@
</pickle>
</pickle>
<pickle>
<pickle>
<dictionary>
<dictionary>
<item>
<key>
<string>
_Cacheable__manager_id
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<key>
<string>
_bind_names
</string>
</key>
<value>
<value>
...
@@ -91,7 +97,7 @@ x_max = xs[stats.test.length-1];\n
...
@@ -91,7 +97,7 @@ x_max = xs[stats.test.length-1];\n
var n = stats.test.length;\n
var n = stats.test.length;\n
// compute and assign value to display\n
// compute and assign value to display\n
for (var i=0; i
<n
;
i++)
{\n
for (var i=0; i
<n
;
i++)
{\n
stats.test[i]["value"]
=
stats.test[i].created_docs
/
stats.test[i].duration;\n
stats.test[i]["value"]
=
3600
*
stats.test[i].created_docs
/
stats.test[i].duration;\n
}\n
}\n
//
Lagrange
interpolation\n
//
Lagrange
interpolation\n
var
L=
[];\n
var
L=
[];\n
...
@@ -148,7 +154,7 @@ var y = d3.scale.linear()\n
...
@@ -148,7 +154,7 @@ var y = d3.scale.linear()\n
function
getMaxCoef(){\n
function
getMaxCoef(){\n
var
max_coef =
0;\n
var
max_coef =
0;\n
for(var
i=
0;
i<stats.test.length;
i++){\n
for(var
i=
0;
i<stats.test.length;
i++){\n
var
coef =
1.0*(stats.test[i].created_docs
/
stats.test[i].duration)
/
xs[i];\n
var
coef =
1.0*(
3600
*
stats.test[i].created_docs
/
stats.test[i].duration)
/
xs[i];\n
if
(coef
>
max_coef){\n
if
(coef
>
max_coef){\n
max_coef = coef;\n
max_coef = coef;\n
}\n
}\n
...
@@ -170,7 +176,7 @@ var commasFormatter = d3.format(".2s")\n
...
@@ -170,7 +176,7 @@ var commasFormatter = d3.format(".2s")\n
var yAxis = d3.svg.axis()\n
var yAxis = d3.svg.axis()\n
.scale(y)\n
.scale(y)\n
.orient("left")\n
.orient("left")\n
.tickFormat(function(d) { return commasFormatter(d)
+ "k"
; });\n
.tickFormat(function(d) { return commasFormatter(d); });\n
\n
\n
var svg = d3.select("body").append("svg")\n
var svg = d3.select("body").append("svg")\n
.attr("width", width + margin.left + margin.right)\n
.attr("width", width + margin.left + margin.right)\n
...
...
bt5/erp5_test_result/bt/revision
View file @
3026d87e
262
263
\ No newline at end of file
\ No newline at end of file
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