Bug 57607

Summary: Constant Throughput Timer : Wrong throughput computed in shared modes due to rounding error
Product: JMeter Reporter: Philippe Mouawad <p.mouawad>
Component: MainAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: normal CC: p.mouawad
Priority: P5    
Version: 2.12   
Target Milestone: ---   
Hardware: All   
OS: All   
Attachments: Test Plan provided by Marcelo Jara

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.