LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   eth card data transfer rates (https://www.linuxquestions.org/questions/programming-9/eth-card-data-transfer-rates-102493/)

h/w 10-10-2003 12:07 PM

eth card data transfer rates
 
can anyone tell me how i can get the data transfer rates on my eth cards? for instance, how gkrellm shows the rate on eth0/eth1 - i would like to call/write a function that gets me the rate at the moment the function is called.

thanks.

Hko 10-11-2003 08:25 AM

Parse /proc/net/dev in a loop in combination with a usleep().

h/w 10-11-2003 09:13 AM

thank you very very much

Hko 10-11-2003 10:24 AM

You're welcome


All times are GMT -5. The time now is 10:52 PM.