summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/wifi.sh2
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/')