This is part of my titlebar... works perfectly. (note: I did not write this code... not sure of the author but kudos to him/her)
alias checkgetbw {
set %bandwidthtemp 1
set %bandwidthtemp2 0
while %bandwidthtemp <= $get(0) {
if $get(%bandwidthtemp).status == active {
%bandwidthtemp2 = %bandwidthtemp2 + $get(%bandwidthtemp).cps
}
inc %bandwidthtemp
}
unset %bandwidthtemp
return $round($calc(%bandwidthtemp2 / 1024),2)
echo -a xfer: $checkgetbw $+ k/s down
}
Not sure if the echo part works... like I said it's part of my titlebar in my mirc.
Give the coding a try - see what happens.