View | Details | Raw Unified | Return to bug 60089
Collapse All | Expand All

(-)src/core/org/apache/jmeter/report/core/Sample.java (-1 / +11 lines)
Lines 254-265 Link Here
254
    }
254
    }
255
255
256
    /**
256
    /**
257
     * Gets the number of received bytes stored in the sample.
258
     *
259
     * @return the number of received bytes stored in the sample
260
     */
261
    public int getReceivedBytes() {
262
        return getData(int.class, CSVSaveService.CSV_BYTES).intValue();
263
    }
264
    
265
    /**
257
     * Gets the number of sent bytes stored in the sample.
266
     * Gets the number of sent bytes stored in the sample.
258
     *
267
     *
259
     * @return the number of sent bytes stored in the sample
268
     * @return the number of sent bytes stored in the sample
260
     */
269
     */
261
    public int getSentBytes() {
270
    public int getSentBytes() {
262
        return getData(int.class, CSVSaveService.CSV_BYTES).intValue();
271
        // TODO To implement when metric is available
272
        return 0;
263
    }
273
    }
264
274
265
    /**
275
    /**
(-)src/core/org/apache/jmeter/report/processor/StatisticsSummaryConsumer.java (+1 lines)
Lines 48-53 Link Here
48
48
49
    void aggregateSample(Sample sample, StatisticsSummaryData data) {
49
    void aggregateSample(Sample sample, StatisticsSummaryData data) {
50
        data.incTotal();
50
        data.incTotal();
51
        data.incBytes(sample.getReceivedBytes());
51
        data.incBytes(sample.getSentBytes());
52
        data.incBytes(sample.getSentBytes());
52
53
53
        if (!sample.getSuccess()) {
54
        if (!sample.getSuccess()) {
(-)src/core/org/apache/jmeter/report/processor/graph/impl/BytesThroughputGraphConsumer.java (-3 / +2 lines)
Lines 78-86 Link Here
78
78
79
                    @Override
79
                    @Override
80
                    public double select(String series, Sample sample) {
80
                    public double select(String series, Sample sample) {
81
                        // TODO Add Received bytes support
81
                        return (RECEIVED_BYTES_SERIES_LABEL.equals(series)) ? sample
82
                        return (SENT_BYTES_SERIES_LABEL.equals(series)) ? sample
82
                                .getReceivedBytes() : sample.getSentBytes();
83
                                .getSentBytes() : 0;
84
                    }
83
                    }
85
                }, false, false));
84
                }, false, false));
86
        return groupInfos;
85
        return groupInfos;

Return to bug 60089