getAvgPageBytes in StatCalculator is correct, but in SamplingStatCalculator, it divides through the duration of the sample (and not, as the comment is saying, divided by the number ob samples), resulting in about the same value than geKBPerSecond. Change this.getElapsed() / 1000 to this.getCount().
Oops! Well spotted. Originally there was a method called getPageSize() This is now renamed as getBytesPerSecond() (because that is what it did). The intention was to add getAvgPageBytes() to return what the Javadoc says, but it seems the code copied from getPageSize() code was not amended. URL: http://svn.apache.org/viewvc?rev=1025989&view=rev Log: Bug 50088 - fix getAvgPageBytes in SamplingStatCalculator so it returns what it should Modified: jakarta/jmeter/trunk/src/core/org/apache/jmeter/visualizers/SamplingStatCalculator.java jakarta/jmeter/trunk/xdocs/changes.xml
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2413