LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
 
Search this Thread
Old 10-10-2003, 12:07 PM   #1
h/w
Senior Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286

Rep: Reputation: 45
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.
 
Old 10-11-2003, 08:25 AM   #2
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: ubuntu
Posts: 2,530

Rep: Reputation: 108Reputation: 108
Parse /proc/net/dev in a loop in combination with a usleep().
 
Old 10-11-2003, 09:13 AM   #3
h/w
Senior Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286

Original Poster
Rep: Reputation: 45
thank you very very much
 
Old 10-11-2003, 10:24 AM   #4
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: ubuntu
Posts: 2,530

Rep: Reputation: 108Reputation: 108
You're welcome
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
transfer rates using rsync BroX Linux - Networking 5 06-07-2007 10:00 PM
iwlist vs tethereal in capturing 802.11 wifi ESSID and data rates powah Linux - Wireless Networking 0 11-07-2005 10:21 AM
gaim - Slow file transfer rates using msn protocol Throxer Linux - Software 2 07-31-2005 07:40 AM
File transfer rates? Matir Linux - Networking 25 03-18-2005 11:43 AM
disk transfer rates on lap tops nakkaya Linux - General 2 02-20-2003 12:27 AM


All times are GMT -5. The time now is 05:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration