fix #24 Throughput Widget bug, now that hex interface numbers are used
(cherry picked from commit e8d4d5397c86d9edd454870f71c6ee72ea728df2)
This commit is contained in:
parent
3e208ab4b7
commit
798793ed87
1 changed files with 2 additions and 1 deletions
|
@ -924,7 +924,8 @@ proc getstats_link_ifname { link } {
|
|||
# TODO: need to determine session number used by daemon
|
||||
# instead this uses a '*' character for a regexp match against
|
||||
# the interfaces in /proc/net/dev
|
||||
set ifname "veth$node_num\\.[string range $ifname 3 end]\\.*"
|
||||
set hex [format "%x" $node_num]
|
||||
set ifname "veth$hex\\.[string range $ifname 3 end]\\.*"
|
||||
return $ifname
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue