mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 14:24:39 -07:00
* usr/lib/byobu/wifi_quality:
- minor fix for wifi quality printing, sometimes = and sometimes :
This commit is contained in:
parent
4e296a84ce
commit
a91fedd4d1
2 changed files with 3 additions and 2 deletions
3
debian/changelog
vendored
3
debian/changelog
vendored
|
@ -1,6 +1,7 @@
|
||||||
byobu (5.44) unreleased; urgency=low
|
byobu (5.44) unreleased; urgency=low
|
||||||
|
|
||||||
* UNRELEASED
|
* usr/lib/byobu/wifi_quality:
|
||||||
|
- minor fix for wifi quality printing, sometimes = and sometimes :
|
||||||
|
|
||||||
-- Dustin Kirkland <kirkland@ubuntu.com> Sun, 02 Jun 2013 00:15:10 -0500
|
-- Dustin Kirkland <kirkland@ubuntu.com> Sun, 02 Jun 2013 00:15:10 -0500
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ __wifi_quality() {
|
||||||
awk '$0 ~ /[ ]*Link Quality./ {
|
awk '$0 ~ /[ ]*Link Quality./ {
|
||||||
sub(/.*=/,"",$2); split($2,a,"/");
|
sub(/.*=/,"",$2); split($2,a,"/");
|
||||||
printf "quality=%.0f\n", 100*a[1]/a[2] };
|
printf "quality=%.0f\n", 100*a[1]/a[2] };
|
||||||
$0 ~ /[ ]*Bit Rate/ { sub(/.*=/,"",$2); printf("bitrate=%s\n", $2); }
|
$0 ~ /[ ]*Bit Rate/ { sub(/.*[:=]/,"",$2); printf("bitrate=%s\n", $2); }
|
||||||
'`
|
'`
|
||||||
eval "$out"
|
eval "$out"
|
||||||
[ -z "$bitrate" ] && bitrate="0"
|
[ -z "$bitrate" ] && bitrate="0"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue