[dev] up/down KB/s retrieval?

From: Guy <patterson_AT_nullamatix.com>
Date: Fri, 9 Oct 2009 01:52:16 -0400

Does anyone know a way to retrieve the current download and upload
speed/rate for a particular interface for display in the status bar?

My current .xinitrc contains:

CPU="`uptime | sed -n 's/.*: //; s/, .*// p'`"
MEM="`free -m|grep \"buffers/cache\"|awk '{print $3}'`M"
DAT="`date \"+%m/%d %H%M\"`"
    xsetroot -name "${CPU} | ${MEM} | ${DAT}"

Which renders something like:
0.22 | 763M | 10/09 0147

I'd like the status bar to also indicate the current transfer rates,
something along the lines of:
0.22 | 763M | 137.2 KB/s Up - 344.8 KB/s Down | 10/09 0147

I prefer avoiding anything like 'conky' if possible.

Regards,

Guy P.
www.nullamatix.com
Received on Fri Oct 09 2009 - 05:52:16 UTC

This archive was generated by hypermail 2.2.0 : Fri Oct 09 2009 - 06:00:01 UTC