fix #24 Throughput Widget bug, now that hex interface numbers are used

(cherry picked from commit e8d4d5397c86d9edd454870f71c6ee72ea728df2)
This commit is contained in:
Jeff Ahrenholz 2017-02-08 14:14:55 -08:00
parent 3e208ab4b7
commit 798793ed87

View file

@ -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
}