diff options
author | johannst <stoelp@eit.uni-kl.de> | 2018-02-25 23:07:17 +0100 |
---|---|---|
committer | johannst <stoelp@eit.uni-kl.de> | 2018-02-25 23:07:17 +0100 |
commit | 55492be5f30a81b3b84bcf4bbc68dd7b47885c39 (patch) | |
tree | 7f11628e4b5a8080dca3b07456b1df720f406085 /scripts/wifi.sh | |
parent | 2d4d59f72068b1aaa64db229264e7fa9322a2629 (diff) | |
download | dotfiles-55492be5f30a81b3b84bcf4bbc68dd7b47885c39.tar.gz dotfiles-55492be5f30a81b3b84bcf4bbc68dd7b47885c39.zip |
preserve 3 spaces for quality
Diffstat (limited to 'scripts/wifi.sh')
-rwxr-xr-x | scripts/wifi.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/wifi.sh b/scripts/wifi.sh index 6f8417a..51262c6 100755 --- a/scripts/wifi.sh +++ b/scripts/wifi.sh @@ -23,7 +23,7 @@ done AP_NAME=$(iwgetid -r $if) AP_MAC=$(iwgetid -a $if | sed 's/.*\(\([0-9A-F]\{2\}:\)\{5\}[0-9A-F]\{2\}\).*/\1/') -AP_QUALITY=$(grep $if /proc/net/wireless | awk '{ print int($3 * 100 / 70) }')% +AP_QUALITY=$(printf '%3s' $(grep $if /proc/net/wireless | awk '{ print int($3 * 100 / 70) }'))% # first ipv4 addr IP_ADDR=$(ip address show $if | grep 'inet ' | sed 's/\s\+inet \([0-9.]\+\)\/.*/\1/') |