Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
sv2 committed Oct 17, 2020
2 parents 5cde43b + f20a981 commit d7bfd10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/swsReqResStats.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ SwsReqResStats.prototype.countResponse = function(code,codeclass,duration,clengt
this.avg_res_clength = Math.floor(this.total_res_clength / this.responses);

// Apdex: https://en.wikipedia.org/wiki/Apdex
if( codeclass=="success" ) {
if( codeclass === "success" || codeclass === "redirect" ) {
if (duration <= this.apdex_threshold) {
this.apdex_satisfied++;
} else if (duration <= (this.apdex_threshold * 4)) {
Expand Down

0 comments on commit d7bfd10

Please sign in to comment.