Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#148 add seeding status

open
nobody
None
5
2012-09-28
2009-07-18
trisooma
No

It would be nice to be able to differentiate between active/seeding, ie. adding seeding as a new status

I am creating a frontend to aria2c and this feature would make it much easier to display this status without too much overhead.

(If you accept patches please give me a hint on which classes are involved
- then I could add this feature myself)

Discussion

  • tujikawa
    tujikawa
    2009-07-20

    I thought 2 options:
    (1) "active" status is removed, instead "downloading" and "seeding" status are added. This is not compatible for older release.
    (2) Add "seeder" key like the response of getPeers response

    Even without above mentioned changes, you can see whether client is seeder or not by comparing totalLength and completedLength. I think it is not a big overhead.

     
  • trisooma
    trisooma
    2009-07-20

    I see your point.

    How is the totalLength calculated? (ie. when not all files are selected, is this reflected in totalLength)

     
  • tujikawa
    tujikawa
    2009-07-21

    totalLength and completedLength reflect the selection of files(--select-file).

     
  • trisooma
    trisooma
    2009-07-23

    No, not so.

    I started the following download: http://torrent.fedoraproject.org/torrents//Fedora-11-i386-CDs.torrent
    I selected files (lengths in brackets): 1 (1604), 2 (727830528), 4 (721659904), 6 (717754368), 8 (185272320)
    total bytes: 2352518724
    totalLength given by aria: 2353243716

    this does not add up

    I'm using aria from svn rev. 1477 (see attached files)

     
  • trisooma
    trisooma
    2009-07-23

    tellActive output

     
    Attachments
  • trisooma
    trisooma
    2009-07-23

    getFiles output

     
    Attachments
  • trisooma
    trisooma
    2009-07-23

    Forgot to tell I added files using xml-rpc (not sure how that matters, but ok)

     
  • tujikawa
    tujikawa
    2009-07-24

    In multi file torrent, several files share single piece. In that case, aria2 downloads whole those pieces. Therefore totalLength and completedLength are a little bit larger than the sum of selected files. It is OK just compare totalLength and completedLength to know the download has been completed or not.