Github user FSchumacher commented on a diff in the pull request:

    https://github.com/apache/jmeter/pull/237#discussion_r91858285
  
    --- Diff: 
src/components/org/apache/jmeter/visualizers/backend/SamplerMetric.java ---
    @@ -88,8 +110,18 @@ private void addHits(SampleResult res) {
          * Reset metric except for percentile related data
          */
         public synchronized void resetForTimeInterval() {
    -        // We don't clear responsesStats nor usersStats as it will slide 
as per my understanding of 
    -        // 
http://commons.apache.org/proper/commons-math/userguide/stat.html
    +           switch (windowMode) {
    +                   case FIXED:
    +                // We don't clear responsesStats nor usersStats as it will 
slide as per my understanding of 
    +                // 
http://commons.apache.org/proper/commons-math/userguide/stat.html
    +                           break;
    +                   case TIMED:
    +                           for (DescriptiveStatistics stat : 
windowedStats) {
    --- End diff --
    
    JMeter now uses java 8, so we could use the newer syntax :)


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to