Round signal strength and mark with percent sign
authorSiraaj Khandkar <siraaj@khandkar.net>
Sat, 31 Oct 2020 01:12:58 +0000 (21:12 -0400)
committerSiraaj Khandkar <siraaj@khandkar.net>
Sat, 31 Oct 2020 01:12:58 +0000 (21:12 -0400)
home/lib/login_functions.sh

index fa45b80..06444ac 100644 (file)
@@ -479,7 +479,7 @@ motd() {
                 if (device != "lo") {
                     l = link[device]
                     e = essid[device]
-                    l = l ? l : "--"
+                    l = l ? sprintf("%.0f%%", l) : "--"
                     e = e ? e : "--"
                     print device, address[device], e, l
                 }
This page took 0.022376 seconds and 4 git commands to generate.