feat: скорректировать пороги цветов ctx
зелёный <40%, жёлтый 40-60%, красный >=60% (совпадает с порогом звука) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -54,9 +54,9 @@ fi
|
|||||||
|
|
||||||
if [ -n "$ctx_pct" ]; then
|
if [ -n "$ctx_pct" ]; then
|
||||||
ctx_int=$(printf '%.0f' "$ctx_pct")
|
ctx_int=$(printf '%.0f' "$ctx_pct")
|
||||||
if [ "$ctx_int" -lt 30 ]; then
|
if [ "$ctx_int" -lt 40 ]; then
|
||||||
ctx_color="\033[00;32m"
|
ctx_color="\033[00;32m"
|
||||||
elif [ "$ctx_int" -lt 50 ]; then
|
elif [ "$ctx_int" -lt 60 ]; then
|
||||||
ctx_color="\033[00;33m"
|
ctx_color="\033[00;33m"
|
||||||
else
|
else
|
||||||
ctx_color="\033[00;31m"
|
ctx_color="\033[00;31m"
|
||||||
|
|||||||
Reference in New Issue
Block a user