mIRC Homepage
Posted By: Felpipe $send Displaying speed in KB/sec - 23/01/05 05:29 AM
Hello !

is there a way to use $send and make it display the speed in KB/sec and not in cps ? this is what I've been using $send(1).cps is there another way to have the script display the speed the way I want ?

Thank you !
Posted By: Danthemandoo Re: $send Displaying speed in KB/sec - 23/01/05 07:20 AM
$bytes($send(1).cps,k) KB/s
Posted By: Coolkill Re: $send Displaying speed in KB/sec - 23/01/05 07:25 AM
KB/s is worked out using the following simple calculation;

$calc([color:red]sentbytes / duration)[/color]

So the following example will tell you how fast DCC 1 is doing:

alias dcc.kbs {
echo - $bytes($calc($send([color:red]1
).sent / $send(1).secs)).suf
}
[/color]

Alternatively you can use the internal CPS and do:

alias dcc.kbs {
echo - $bytes($send([color:red]1
).cps).suf
}
[/color]

Send a file to someone (or yourself) and type /dcc.kbs, Obviously the red 1's above represent the Nth DCC send.

Eamonn Burns.
Mekaneka.co.uk
Posted By: Felpipe Re: $send Displaying speed in KB/sec - 23/01/05 08:45 AM

THANK YOU !
Posted By: Felpipe Re: $send Displaying speed in KB/sec - 23/01/05 04:02 PM
Im using the $send to tell me the speed that a file was sent but the ones u both recomend me arent very accurate.. while in the status window and in the DCC SEND window I see the same speed is not the same I get from the script; its actually very different
I was also trying this $round($calc($send(1).cps / 1024),3) KB/sec but its not accurate either

Any Ideas ?....
Thank You !!
© mIRC Discussion Forums