fix(eww -> get-connectivity-info): Fixed signal strength calculations

This commit is contained in:
GaspardCulis 2024-10-12 19:28:37 +02:00
parent 4277531d56
commit ad013b26f2

View file

@ -22,10 +22,10 @@ print_network_state() {
}
wifi_strength() {
if [ "$1" -le -80 ]; then echo terrible
elif [ "$1" -le -70 ]; then echo bad
elif [ "$1" -le -60 ]; then echo mediocre
elif [ "$1" -le -40 ]; then echo good
if [ "$1" -le 20 ]; then echo terrible
elif [ "$1" -le 40 ]; then echo bad
elif [ "$1" -le 60 ]; then echo mediocre
elif [ "$1" -le 80 ]; then echo good
else echo excellent
fi
}