jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject [jmeter] branch master updated: Fix Bug 64059 - Response Time Percentiles Over Time, unable to change the percentiles https://bz.apache.org/bugzilla/show_bug.cgi?id=64059
Date Sat, 15 Feb 2020 11:17:15 GMT
This is an automated email from the ASF dual-hosted git repository.

pmouawad pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jmeter.git


The following commit(s) were added to refs/heads/master by this push:
     new cfb2bd9  Fix Bug 64059 - Response Time Percentiles Over Time, unable to change the
percentiles https://bz.apache.org/bugzilla/show_bug.cgi?id=64059
cfb2bd9 is described below

commit cfb2bd92acf19123ae8a0de32ca60a46f5a85043
Author: pmouawad <p.mouawad@ubik-ingenierie.com>
AuthorDate: Sat Feb 15 12:17:03 2020 +0100

    Fix Bug 64059 - Response Time Percentiles Over Time, unable to change the percentiles
https://bz.apache.org/bugzilla/show_bug.cgi?id=64059
---
 .../impl/ResponseTimePercentilesOverTimeGraphConsumer.java   | 12 +++++++++---
 xdocs/changes.xml                                            |  1 +
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/src/core/src/main/java/org/apache/jmeter/report/processor/graph/impl/ResponseTimePercentilesOverTimeGraphConsumer.java
b/src/core/src/main/java/org/apache/jmeter/report/processor/graph/impl/ResponseTimePercentilesOverTimeGraphConsumer.java
index b9676f3..c8a3d91 100644
--- a/src/core/src/main/java/org/apache/jmeter/report/processor/graph/impl/ResponseTimePercentilesOverTimeGraphConsumer.java
+++ b/src/core/src/main/java/org/apache/jmeter/report/processor/graph/impl/ResponseTimePercentilesOverTimeGraphConsumer.java
@@ -40,6 +40,12 @@ import org.apache.jmeter.util.JMeterUtils;
  */
 public class ResponseTimePercentilesOverTimeGraphConsumer
         extends AbstractOverTimeGraphConsumer {
+    private static final int PERCENTILE_INDEX1 = JMeterUtils.getPropDefault(
+            "aggregate_rpt_pct1", 90);
+    private static final int PERCENTILE_INDEX2 = JMeterUtils.getPropDefault(
+            "aggregate_rpt_pct2", 95);
+    private static final int PERCENTILE_INDEX3 = JMeterUtils.getPropDefault(
+            "aggregate_rpt_pct3", 99);
 
     private static final String PERCENTILE_FORMAT = "%dth percentile";
 
@@ -57,11 +63,11 @@ public class ResponseTimePercentilesOverTimeGraphConsumer
         groupInfos.put("aggregate_report_min", createMinGroupInfo());
         groupInfos.put("aggregate_report_max", createMaxGroupInfo());
         groupInfos.put("aggregate_rpt_pct1",
-                createPercentileGroupInfo("aggregate_rpt_pct1", 90));
+                createPercentileGroupInfo("aggregate_rpt_pct1", PERCENTILE_INDEX1));
         groupInfos.put("aggregate_rpt_pct2",
-                createPercentileGroupInfo("aggregate_rpt_pct2", 95));
+                createPercentileGroupInfo("aggregate_rpt_pct2", PERCENTILE_INDEX2));
         groupInfos.put("aggregate_rpt_pct3",
-                createPercentileGroupInfo("aggregate_rpt_pct3", 99));
+                createPercentileGroupInfo("aggregate_rpt_pct3", PERCENTILE_INDEX3));
 
         return groupInfos;
     }
diff --git a/xdocs/changes.xml b/xdocs/changes.xml
index 5310763..d856a37 100644
--- a/xdocs/changes.xml
+++ b/xdocs/changes.xml
@@ -164,6 +164,7 @@ to view the last release notes of version 5.2.1.
 
 <h3>Report / Dashboard</h3>
 <ul>
+    <li><bug>64059</bug>Response Time Percentiles Over Time, unable to
change the percentiles</li>
 </ul>
 
 <h3>Documentation</h3>


Mime
View raw message