PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: smoothie on 20 February, 2004, 17:29:11

Title: Users uploads/downloads ratio logger
Post by: smoothie on 20 February, 2004, 17:29:11
a few serious leechers make the other users feel uncomfortable in my hubs... is there a way to log the amount of data the users downloads and uploads to a file and then run a query to get a list of let's say the top ten worst leeches based on up/down ratio?

Thanks in advance,

- Smoothie.
Title:
Post by: tezlo on 21 February, 2004, 16:44:38
nope
Title:
Post by: [NL]Pur on 21 February, 2004, 17:13:36
is it possible too catch the ConnectToMe thru scripting?
Title:
Post by: tezlo on 21 February, 2004, 17:40:56
sure.. but it doesnt tell you much
Title:
Post by: smoothie on 22 February, 2004, 04:27:54
thanks for the replies guys, but what about the $SR command? Or is that just a request for a slot?

$SR user1 tunes\Smooth Tunes\3rd Force\3rd Force - 3rd Force\3rd Force - 3rd Force - 04 - The Gift.mp3 6639077 5/6 Jazzhouse (127.0.0.1) user2|

- Smoothie.
Title:
Post by: Fluk on 22 February, 2004, 09:20:41
1)  you can't know, server side, the amount of data the users download/upload  from other users  becasue they are managed client to client .

2) The $SR command is sent in response to a client searching. This is sent UDP when the searching client is in Active Mode.  It tell you only what the passive users are searching and what's founded in share of others ;  replay to searches of active users are directly sent to the client and you don't see it in hub console.

  :D
Title:
Post by: [NL]Pur on 22 February, 2004, 12:23:24
indeed @ fluk

the $ConnectToMe can tell who is asking too download from someelse alot. But not howmuch he's downloading,
or howlong.
Title: Hmm
Post by: RollTheDice on 22 February, 2004, 13:17:50
kick them out  :D ..no need a script ...leechers is easy to find if have few good users and ops:)