If you don't want to rely on a script I wrote, you can do:

grep eth0 /proc/net/dev | awk '{print $2}' ; sleep 60 ; grep eth0
/proc/net/dev | awk '{print $2}'

Assuming your internet connection is through your eth0 device.

/proc/net/dev includes column labels so you can verify the second column
is bytes received.

Subtract the values and you have bytes transmitted per minute.  Devide
it by 60 to convert to seconds, and divide it by 1024 to convert to
kilobytes.  So...


$ grep eth0 /proc/net/dev | awk '{print $2}' ; sleep 60 ; grep eth0 
/proc/net/dev | awk '{print $2}'
18928602120
18931397743

$ bc -l
(18931397743-18928602120)/60/1024
45.50167643229166666666


45.5 kilobytes per second.  (I have other stuff running, so not a 
representation of azureus usage, just an example.)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/428231

Title:
  Badly under-reports bandwidth usage.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to