mIRC Home    About    Download    Register    News    Help

Print Thread
#200397 04/06/08 11:32 PM
Joined: Aug 2006
Posts: 44
D
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Aug 2006
Posts: 44
this little snippet also goes in aliases - and i am wondering if its possible to fix the timing on this.

Code:
(aliases)
ryder.dcc.get {
  var %a = 1
  if (!$get(0)) { say 8D7CC 8G7ets: 15[14 No dcc gets in progress. 15]5 }
  else {
    while (%a <= $get(0)) {
      say 15D10CC 15G10ets14: 9[3 $get(%a).file 9] 15F10rom14:4 $get(%a) $+ 6. 15F10ile 15S10ize14: 9[3 $bytes($get(%a).size,m).suf 9] 15C10ompleted 15S10o 15F10ar14:7 $get(%a).pc $+ % $+ 6. 15C10urrent 15S10peed14: 9[3 $+($bytes($get(%a).cps,k).suf,/sec) 9] 15T10ime 15L10eft14: 9[3 $duration($calc(($get(%a).size / $get(%a).cps) - $get(%a).secs)) 9]5
      inc %a
    }
  }
}

ryder.dcc.send { 
  var %a = 1 
  if (!$send(0)) { say 8D7CC 8S7ends: 15[14 No dcc sends in progress. 15]5 } 
  else { 
    while (%a <= $send(0)) { 
      say 15D10CC 15S10ends14: 9[3 $send(%a).file 9] 6To4 $send(%a) $+ 6. 15F10ile15S10ize14: 9[3 $bytes($send(%a).size,m).suf 9] 6With7 $send(%a).pc $+ % 6Complete. 15S10peed14: 9[3 $bytes($send(%a).cps,k).suf 9] 15T10ime 15L10eft14: 9[3 $duration($calc(($send(%a).size - $send(%a).sent) / $send(%a).cps)) 9]5 
      inc %a 
    } 
  } 
}

(popups)
·IRC
.·DCC Gets: ryder.dcc.get
.·DCC Sends: ryder.dcc.send


thanks again for any help on this

Last edited by DragonRyder; 05/06/08 04:53 AM.
DragonRyder #200411 05/06/08 05:13 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
The problem isn't with the script, but with the fact that the timings for Sending are lower than that for Getting, when referencing the same files. This is due to the fact that the sender usually has a faster upload rate than the reciever's download rate.

RusselB #200412 05/06/08 05:14 AM
Joined: Aug 2006
Posts: 44
D
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Aug 2006
Posts: 44
understood and thanks for taking the time to look this over


Link Copied to Clipboard