network script broken for vlan devices

Bug #509278 reported by Michael Onnen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
byobu
Fix Released
Low
Dustin Kirkland 
byobu (Ubuntu)
Fix Released
Low
Dustin Kirkland 

Bug Description

network script shows 0kB/s all the time for vlan devices (and probably for any network device that's longer than 6 characters).

offending line(s) in /usr/lib/byobu/network:
  x2=`grep -m1 "\W$interface:" /proc/net/dev | sed "s/^.*://" | awk '{print $9}'`

\W matches a non-word character before the interface name. For device names longer than 6 chars there isn't any.
$ grep -m1 "\Wvlan1000:" /proc/net/dev

Maybe match the word boundary if you must:
$ grep -m1 "\bvlan1000:" /proc/net/dev
vlan1000:164329464828 144006418 0 0 0 0 0 20 133694577772 76407553 0 0 0 0 0 0

Related branches

Changed in byobu:
status: New → Fix Committed
importance: Undecided → Low
assignee: nobody → Dustin Kirkland (kirkland)
Changed in byobu (Ubuntu):
status: New → Fix Committed
importance: Undecided → Low
assignee: nobody → Dustin Kirkland (kirkland)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package byobu - 2.56-0ubuntu1

---------------
byobu (2.56-0ubuntu1) lucid; urgency=low

  * debian/control: drop byobu-extras empty package
  * usr/bin/byobu-launcher: fix recent regression, do exec byobu by default,
    but allow for not exec'ing if ~/.byobu/disable-exec exists, LP: #519018
  * usr/lib/byobu/network: improve regex of the interface matching, which
    was broken for device names >6 chars, LP: #509278
 -- Dustin Kirkland <email address hidden> Sat, 06 Feb 2010 22:10:52 -0600

Changed in byobu (Ubuntu):
status: Fix Committed → Fix Released
Changed in byobu:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.