paradoxxxzero/gnome-shell-system-monitor-applet — Issue #79: Get network traffic statistic from the interface where default route is set
Author: clopez
Created: 2011-11-26 02:52:58+00:00
State: open

The network traffic statistics only work when the default route is set to eth0, neither wireless (wlan0) or any other kind of iface works.

This bug supersedes #68

The interface where network traffic statistics are fetch must be dynamically obtained.

See file /proc/net/route

You must match for "00000000" on the second column and get the iface name from the first column.

Then use this iface to fetch traffic statistics.

Thanks!