Bug 57607 - Constant Throughput Timer : Wrong throughput computed in shared modes due to rounding error
Summary: Constant Throughput Timer : Wrong throughput computed in shared modes due to ...
Status: RESOLVED FIXED
Alias: None
Product: JMeter
Classification: Unclassified
Component: Main (show other bugs)
Version: 2.12
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-19 22:25 UTC by Philippe Mouawad
Modified: 2015-03-22 18:16 UTC (History)
1 user (show)



Attachments
Test Plan provided by Marcelo Jara (4.08 KB, application/xml)
2015-02-19 22:25 UTC, Philippe Mouawad
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Mouawad 2015-02-19 22:25:28 UTC
Created attachment 32499 [details]
Test Plan provided by Marcelo Jara

As per following discussion:

http://mail-archives.apache.org/mod_mbox/jmeter-user/201502.mbox/%3CCOL129-W48514C5AE7E5933103B5DCAC2C0%40phx.gbl%3E

It appears there is a bug due to rounding which abnormally rounds 2.9.... to 2.
Comment 1 Philippe Mouawad 2015-02-19 22:29:48 UTC
Date: Thu Feb 19 22:29:03 2015
New Revision: 1661016

URL: http://svn.apache.org/r1661016
Log:
Bug 57607 - Constant Throughput Timer : Wrong throughput computed in shared modes due to rounding error
Bugzilla Id: 57607

Modified:
    jmeter/trunk/src/components/org/apache/jmeter/timers/ConstantThroughputTimer.java
    jmeter/trunk/xdocs/changes.xml
Comment 2 Philippe Mouawad 2015-02-19 22:31:02 UTC
Note maybe some clarification should be added regarding the rounding problem that when close to 0.5 will create issues.
Or maybe an enhancement to make sleep go up to Nanos.
Comment 3 Philippe Mouawad 2015-03-22 18:16:59 UTC
Closing as fixed in 2.13.
And opened:
https://bz.apache.org/bugzilla/show_bug.cgi?id=57737
for the rest.