ASF Bugzilla – Attachment 26380 Details for
Bug 50438
code calculates average with integer math, expecting double value
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to use double averaging
double_avg.diff (text/plain), 554 bytes, created by
Dave Brosius
on 2010-12-08 23:36:32 UTC
(
hide
)
Description:
patch to use double averaging
Filename:
MIME Type:
Creator:
Dave Brosius
Created:
2010-12-08 23:36:32 UTC
Size:
554 bytes
patch
obsolete
>Index: src/core/org/apache/jmeter/visualizers/SamplingStatCalculator.java >=================================================================== >--- src/core/org/apache/jmeter/visualizers/SamplingStatCalculator.java (revision 1043833) >+++ src/core/org/apache/jmeter/visualizers/SamplingStatCalculator.java (working copy) >@@ -131,7 +131,7 @@ > if (count == 0) { > return 0; > } >- return calculator.getTotalBytes() / count; >+ return calculator.getTotalBytes() / (double)count; > } > > public String getLabel() { >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 50438
: 26380