Merge pull request #109 from coreemu/bugfix/issue24-fix-throughput-widget

Bugfix/issue24 fix Throughput Widget resolves #108
This commit is contained in:
Jeff Ahrenholz 2017-02-10 08:58:24 -08:00 committed by GitHub
commit c7324dbb45

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
}