We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b9db69 commit c9b2a70Copy full SHA for c9b2a70
lib/swsReqResStats.js
@@ -54,7 +54,7 @@ SwsReqResStats.prototype.countResponse = function(code,codeclass,duration,clengt
54
this.avg_res_clength = Math.floor(this.total_res_clength / this.responses);
55
56
// Apdex: https://en.wikipedia.org/wiki/Apdex
57
- if( codeclass=="success" ) {
+ if( codeclass === "success" || codeclass === "redirect" ) {
58
if (duration <= this.apdex_threshold) {
59
this.apdex_satisfied++;
60
} else if (duration <= (this.apdex_threshold * 4)) {
0 commit comments