paradoxxxzero / gnome-shell-system-monitor-applet

Display system informations in gnome shell status bar, such as memory usage, cpu usage, network rates…
GNU General Public License v3.0
1.75k stars 324 forks source link

Net Speed #19

Closed feanor12 closed 13 years ago

feanor12 commented 13 years ago

There is a possible problem in how you calculate the netspeed If I take my /proc/net/dev for example

Inter-| Receive | Transmit face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed lo: 34766 511 0 0 0 0 0 0 34766 511 0 0 0 0 0 0 eth0: 0 0 0 0 0 0 0 0 2003761 15228 0 0 0 0 0 0 eth1: 941964237 742170 0 0 0 0 0 0 85446394 694250 0 0 0 0 0 0 br0: 930504134 736397 0 0 0 0 0 0 85433180 694037 0 0 0 0 0 0

br0 is a bridge between eth0 and eth1 So the applet shows twice the real speed

paradoxxxzero commented 13 years ago

I am not sure there is an automated way to found which ifs are real or virtual. I will put a whitelist of if names. Thanks

yuyichao commented 13 years ago

yes, I actually realized this when I add net speed. But I really don't know how to get a whitelist or blacklist~~

paradoxxxzero commented 13 years ago

I white listed eth and wlan. If you have other interface names which may appear in total, let me know.

feanor12 commented 13 years ago

i think ath and ra should be white listed too

reivaj84 commented 13 years ago

Hi Paradoxxxzero, I really want to thank you for this great job. I'm using Fedora 15 for the first time and I could notice that the ethernet NIC has been called "em1" and the wireless NIC "wlan0", the graphic for wireless connection is showing up fine, but when I'm using ethernet ot "point-to-point protocol" (ppp0) it does not show up, is it possible to white list "em1" and "ppp0" too? thanks in advance

paradoxxxzero commented 13 years ago

Thanks, I use blacklisting now

reivaj84 commented 13 years ago

Awesome man.... works like a charm, thanks a lot for your work and keep doing it like this!!! cheers from Argentina!!

2011/7/9 paradoxxxzero < reply@reply.github.com>

Thanks, I use blacklisting now

Reply to this email directly or view it on GitHub:

https://github.com/paradoxxxzero/gnome-shell-system-monitor-applet/issues/19#issuecomment-1537919

Salut