File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -22,12 +22,13 @@ compare_stat_p90() {
22
22
local current_value=" $2 "
23
23
local stat_name=" $3 "
24
24
25
- # Calculate 125% of the past value
25
+
26
+ # Calculate 150% of the past value
26
27
local threshold=$( calculate_threshold " $past_value " )
27
28
28
29
# Compare the current value with the threshold
29
30
if (( $(echo "$current_value > $threshold " | bc - l) )) ; then
30
- echo " ERROR: $stat_name - Current P90 value ($current_value ) exceeds the 125 % threshold ($threshold ) of the past P90 value ($past_value )"
31
+ echo " ERROR: $stat_name - Current P90 value ($current_value ) exceeds the 150 % threshold ($threshold ) of the past P90 value ($past_value )"
31
32
return 1
32
33
fi
33
34
@@ -36,7 +37,8 @@ compare_stat_p90() {
36
37
37
38
calculate_threshold () {
38
39
local past_value=" $1 "
39
- awk -v past=" $past_value " ' BEGIN { print past * 1.25 }'
40
+ awk -v past=" $past_value " ' BEGIN { print past * 1.5 }'
41
+
40
42
}
41
43
42
44
calculate_p90_after_skip () {
You can’t perform that action at this time.
0 commit comments