Skip to content

Commit

Permalink
Fix: apdex calculation (#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeknovy authored Mar 17, 2023
1 parent 2af9e39 commit b081ea0
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,9 @@ export class RequestStatsCompareComponent implements OnInit, OnDestroy {
}

calculateApdex(satisfaction, toleration, samples) {
if (satisfaction === null || toleration === null) {
return
}
const apdexValue = roundNumberTwoDecimals((satisfaction + (toleration * 0.5)) / samples)
return this.apdexScore(apdexValue)
}
Expand Down

0 comments on commit b081ea0

Please sign in to comment.