mIRC Homepage
Posted By: DragonRyder dcc snippet - 04/06/08 11:32 PM
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
Posted By: RusselB Re: dcc snippet - 05/06/08 05:13 AM
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.
Posted By: DragonRyder Re: dcc snippet - 05/06/08 05:14 AM
understood and thanks for taking the time to look this over
© mIRC Discussion Forums