mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 14:24:39 -07:00
bin/network: match interface a bit better for bridges, LP: #498722
This commit is contained in:
parent
da9442f48e
commit
11f03ab725
2 changed files with 3 additions and 2 deletions
|
@ -44,10 +44,10 @@ for i in up down; do
|
|||
x1=`cat "$cache"` 2>/dev/null || tx1=0
|
||||
if [ "$i" = "up" ]; then
|
||||
symbol="^"
|
||||
x2=`grep -m1 "$interface:" /proc/net/dev | sed "s/^.*://" | awk '{print $9}'`
|
||||
x2=`grep -w -m1 "$interface:" /proc/net/dev | sed "s/^.*://" | awk '{print $9}'`
|
||||
else
|
||||
symbol="v"
|
||||
x2=`grep -m1 "$interface:" /proc/net/dev | sed "s/^.*://" | awk '{print $1}'`
|
||||
x2=`grep -w -m1 "$interface:" /proc/net/dev | sed "s/^.*://" | awk '{print $1}'`
|
||||
fi
|
||||
echo "$x2" > "$cache"
|
||||
rate=`echo "$t1" "$t2" "$x1" "$x2" | awk '{printf "%.0f", ($4 - $3) / ($2 - $1) / 1024 }'`
|
||||
|
|
1
debian/changelog
vendored
1
debian/changelog
vendored
|
@ -5,6 +5,7 @@ byobu (2.46) unreleased; urgency=low
|
|||
on black
|
||||
* byobu-config, doc/help.txt: insert version number in byobu help menu,
|
||||
LP: #502119
|
||||
* bin/network: match interface a bit better for bridges, LP: #498722
|
||||
|
||||
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 07 Jan 2010 21:53:14 -0600
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue