Bug 61493 - Max/Min threads are interchanged in Graphite and InfluxDB backend listener
Summary: Max/Min threads are interchanged in Graphite and InfluxDB backend listener
Status: RESOLVED FIXED
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: Main (show other bugs)
Version: 2.13
Hardware: All All
: P2 normal (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-06 11:21 UTC by Mayank Upadhyaya
Modified: 2017-09-07 20:16 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mayank Upadhyaya 2017-09-06 11:21:06 UTC
package org.apache.jmeter.visualizers.backend;

  /**
     * @return the max number of active threads for this test run 
     *          using a sliding window of SLIDING_WINDOW_SIZE
     */
    public int getMaxActiveThreads() {
        return (int) usersStats.getMin();
    }

    /**
     * @return the mean number of active threads for this test run
     *          using a sliding window of SLIDING_WINDOW_SIZE
     */
    public int getMeanActiveThreads() {
        return (int) usersStats.getMean();
    }
    
    /**
     * @return the min number of active threads for this test run
     *          using a sliding window of SLIDING_WINDOW_SIZE
     */
    public int getMinActiveThreads() {
        return (int) usersStats.getMax();
    }

    /**
     * @return finished threads
     */

*getMaxActiveThreads() and getMinActiveThreads() functions are interchanged
Comment 1 Mayank Upadhyaya 2017-09-06 11:23:03 UTC
In Documentation its given 
http://jmeter.apache.org/usermanual/realtime-results.html

Thread metrics are the following:

<rootMetricsPrefix>test.minAT
Min active threads
<rootMetricsPrefix>test.maxAT
Max active threads
<rootMetricsPrefix>test.meanAT
Mean active threads
<rootMetricsPrefix>test.startedT
Started threads
<rootMetricsPrefix>test.endedT
Finished threads
Comment 2 Philippe Mouawad 2017-09-07 20:16:13 UTC
Author: pmouawad
Date: Thu Sep  7 20:14:57 2017
New Revision: 1807645

URL: http://svn.apache.org/viewvc?rev=1807645&view=rev
Log:
Bug 61493 - Max/Min threads are interchanged in Graphite and InfluxDB backend listener
Bugzilla Id: 61493

Modified:
    jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/UserMetric.java
    jmeter/trunk/xdocs/changes.xml
Comment 3 Philippe Mouawad 2017-09-07 20:16:28 UTC
Thanks for report !
Comment 4 The ASF infrastructure team 2022-09-24 20:38:09 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/4479