clopez/gnome-shell-system-monitor-applet — comment on commit 0fab1e9ec1dd57a278ddac2e889ae2ab79cf1145
File:  line 0
By darkxst:

Currently we show network traffic for all active physical interfaces.

libgtop does not allow us to separate out load based on connections so even in the case you select the device that has the default route, in most cases it will still be picking up all LAN traffic on the interface as well (except for the case where the internet has a dedicated interface.)

The real advantage of Network Manager is that it provides signals to notify when a device comes up (or down). Using synchronous file reads to poll a file in case it changes is not really good practice, since these calls will block the shell while executing, if they happen to get delayed for some reason (high system load perhaps). Probably it would be better to use ```Gio.FileMonitor``` and connect to the ```changed``` signal.