fix(eww -> get-connectivity-info): Fixed signal strength calculations
This commit is contained in:
parent
4277531d56
commit
ad013b26f2
1 changed files with 5 additions and 5 deletions
|
@ -22,11 +22,11 @@ print_network_state() {
|
||||||
}
|
}
|
||||||
|
|
||||||
wifi_strength() {
|
wifi_strength() {
|
||||||
if [ "$1" -le -80 ]; then echo terrible
|
if [ "$1" -le 20 ]; then echo terrible
|
||||||
elif [ "$1" -le -70 ]; then echo bad
|
elif [ "$1" -le 40 ]; then echo bad
|
||||||
elif [ "$1" -le -60 ]; then echo mediocre
|
elif [ "$1" -le 60 ]; then echo mediocre
|
||||||
elif [ "$1" -le -40 ]; then echo good
|
elif [ "$1" -le 80 ]; then echo good
|
||||||
else echo excellent
|
else echo excellent
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue