You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (increasePercentage > durationDeviationPercentage) {
24993
+
if (relativeDurationDeviationPercentage > durationDeviationPercentage) {
24993
24994
outputs.push({
24994
24995
name: measurement.name,
24995
-
description: `Duration increase percentage exceeded the allowed deviation of ${durationDeviationPercentage}%. Current percentage: ${increasePercentage}%`,
24996
-
increasePercentage,
24997
-
isGreaterThanDurationDeviationPercentage: true,
24996
+
description: `Duration deviation of ${durationDeviation.toFixed(2)} ms (${relativeDurationDeviationPercentage.toFixed(2)}%) exceeded the allowed range of ${allowedDurationDeviation.toFixed(2)} ms (${durationDeviationPercentage.toFixed(2)}%).`,
24997
+
relativeDurationDeviationPercentage,
24998
+
isDeviationExceeded: true,
24998
24999
});
24999
25000
}
25000
25001
else {
25001
25002
outputs.push({
25002
25003
name: measurement.name,
25003
-
description: `Duration increase percentage ${increasePercentage}% is within the allowed deviation range of ${durationDeviationPercentage}%.`,
25004
-
increasePercentage,
25005
-
isGreaterThanDurationDeviationPercentage: false,
25004
+
description: `Duration deviation of ${durationDeviation.toFixed(2)} ms (${relativeDurationDeviationPercentage.toFixed(2)}%) is within the allowed range of ${allowedDurationDeviation.toFixed(2)} ms (${durationDeviationPercentage.toFixed(2)}%).`,
description: `Duration increase percentage exceeded the allowed deviation of ${durationDeviationPercentage}%. Current percentage: ${increasePercentage}%`,
49
-
increasePercentage,
50
-
isGreaterThanDurationDeviationPercentage: true,
49
+
description: `Duration deviation of ${durationDeviation.toFixed(2)} ms (${relativeDurationDeviationPercentage.toFixed(
50
+
2,
51
+
)}%) exceeded the allowed range of ${allowedDurationDeviation.toFixed(2)} ms (${durationDeviationPercentage.toFixed(2)}%).`,
52
+
relativeDurationDeviationPercentage,
53
+
isDeviationExceeded: true,
51
54
});
52
55
}else{
53
56
outputs.push({
54
57
name: measurement.name,
55
-
description: `Duration increase percentage ${increasePercentage}% is within the allowed deviation range of ${durationDeviationPercentage}%.`,
56
-
increasePercentage,
57
-
isGreaterThanDurationDeviationPercentage: false,
58
+
description: `Duration deviation of ${durationDeviation.toFixed(2)} ms (${relativeDurationDeviationPercentage.toFixed(
59
+
2,
60
+
)}%) is within the allowed range of ${allowedDurationDeviation.toFixed(2)} ms (${durationDeviationPercentage.toFixed(2)}%).`,
0 commit comments