New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Report / Dashboard : Bytes throughput Over Time has reversed Sent and Received bytes #4092
Comments
UbikLoadPack support (migrated from Bugzilla): BUG_60089.patchIndex: src/core/org/apache/jmeter/report/core/Sample.java
===================================================================
--- src/core/org/apache/jmeter/report/core/Sample.java (revision 1759441)
+++ src/core/org/apache/jmeter/report/core/Sample.java (working copy)
@@ -254,12 +254,22 @@
}
/**
+ * Gets the number of received bytes stored in the sample.
+ *
+ * @return the number of received bytes stored in the sample
+ */
+ public int getReceivedBytes() {
+ return getData(int.class, CSVSaveService.CSV_BYTES).intValue();
+ }
+
+ /**
* Gets the number of sent bytes stored in the sample.
*
* @return the number of sent bytes stored in the sample
*/
public int getSentBytes() {
- return getData(int.class, CSVSaveService.CSV_BYTES).intValue();
+ // TODO To implement when metric is available
+ return 0;
}
/**
Index: src/core/org/apache/jmeter/report/processor/StatisticsSummaryConsumer.java
===================================================================
--- src/core/org/apache/jmeter/report/processor/StatisticsSummaryConsumer.java (revision 1759441)
+++ src/core/org/apache/jmeter/report/processor/StatisticsSummaryConsumer.java (working copy)
@@ -48,6 +48,7 @@
void aggregateSample(Sample sample, StatisticsSummaryData data) {
data.incTotal();
+ data.incBytes(sample.getReceivedBytes());
data.incBytes(sample.getSentBytes());
if (!sample.getSuccess()) {
Index: src/core/org/apache/jmeter/report/processor/graph/impl/BytesThroughputGraphConsumer.java
===================================================================
--- src/core/org/apache/jmeter/report/processor/graph/impl/BytesThroughputGraphConsumer.java (revision 1759441)
+++ src/core/org/apache/jmeter/report/processor/graph/impl/BytesThroughputGraphConsumer.java (working copy)
@@ -78,9 +78,8 @@
@Override
public double select(String series, Sample sample) {
- // TODO Add Received bytes support
- return (SENT_BYTES_SERIES_LABEL.equals(series)) ? sample
- .getSentBytes() : 0;
+ return (RECEIVED_BYTES_SERIES_LABEL.equals(series)) ? sample
+ .getReceivedBytes() : sample.getSentBytes();
}
}, false, false));
return groupInfos; |
@pmouawad (migrated from Bugzilla): URL: http://svn.apache.org/viewvc?rev=1759448&view=rev Modified: |
UbikLoadPack support (Bug 60089):
In Bytes throughput Over Time, sent bytes is in fact received bytes and received bytes contains sent bytes (which is for now an unavailable metric).
Severity: normal
OS: All
The text was updated successfully, but these errors were encountered: