mIRC Home    About    Download    Register    News    Help

Print Thread
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
Joined: Mar 2004
Posts: 457
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Mar 2004
Posts: 457
$bytes($send(1).cps,k) KB/s

Joined: Dec 2002
Posts: 788
C
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

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
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 !!


Link Copied to Clipboard