Subscribe

Active download/upload torrent count

  1. 2010-04-02 04:04:35 PDT
    Hi, A simple question. Does xbt support currently active downloaded/uploaded torrent count per user? I suppose, xbt_files_users is the table, that should do that. When downloaded = 0, then I assume, that the torrent is still being downloaded and vise versa when downloaded = 1. But the problem is, when a torrent is stopped or the client has been shutdown. After restarting and resuming seeding, the peer is written as a downloaded = 0. Although previously it was downloaded. Tested several times. Is it a bug or not supported feature? I looked at the source and I see, that this parameter is extracted from the connection from client to tracker. So, in theory, the parameter should be set correctly. Or am I missing something?
  2. 2010-04-02 04:21:53 PDT
    XBT Tracker does not reset those counters at client restart. So they won't reset to 0.
  3. 2010-04-02 04:40:27 PDT
    Stupid me. I'm using tbdev frontend and it has been modified for xbt support. So I've found this line which is the culprit: mysql_query("DELETE FROM `xbt_files_users` WHERE `active` = '0'"); But if I don't delete them manually, soon i'll have tons of inactive peers. My torrent site has a lot of users. Maybe XBT does some fancy peer cleaning? (haven't looked yet)
  4. 2010-04-02 04:42:56 PDT
    No it doesn't. Delete old rows based on mtime.
  5. 2010-04-02 04:51:12 PDT
    Yeah, I thought doing so. One more question, if I may? How downloaded column is treated for uploaders? I mean they do not download content, they just seed. Will xbt recognize and set downloaded to 1?
  6. 2010-04-02 04:53:50 PDT
    Downloaded is increased by one when the client sends event=completed.
  7. 2010-04-02 04:55:02 PDT
    Great ! Thanks for your time ;) XBT rocks :)
  8. 2010-04-02 05:07:17 PDT
    BTW, for anyone reading this, with `downloaded` I meant `completed`. Sorry for the mix up.
Jump To:
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.