mIRC Home    About    Download    Register    News    Help

Print Thread
$send Displaying speed in KB/sec #108862 23/01/05 05:29 AM
Joined: Nov 2003
Posts: 82
F
Felpipe Offline OP
Babel fish
OP Offline
Babel fish
F
Joined: Nov 2003
Posts: 82
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 !


-------------------------------
Felpipe@Gmail.com
Re: $send Displaying speed in KB/sec #108863 23/01/05 07:20 AM
Joined: Mar 2004
Posts: 457
D
Danthemandoo Offline
Fjord artisan
Offline
Fjord artisan
D
Joined: Mar 2004
Posts: 457
$bytes($send(1).cps,k) KB/s

Re: $send Displaying speed in KB/sec #108864 23/01/05 07:25 AM
Joined: Dec 2002
Posts: 788
C
Coolkill Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
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

Re: $send Displaying speed in KB/sec #108865 23/01/05 08:45 AM
Joined: Nov 2003
Posts: 82
F
Felpipe Offline OP
Babel fish
OP Offline
Babel fish
F
Joined: Nov 2003
Posts: 82

THANK YOU !


-------------------------------
Felpipe@Gmail.com
Re: $send Displaying speed in KB/sec #108866 23/01/05 04:02 PM
Joined: Nov 2003
Posts: 82
F
Felpipe Offline OP
Babel fish
OP Offline
Babel fish
F
Joined: Nov 2003
Posts: 82
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 !!