Ignore:
Timestamp:
Jul 11, 2010, 9:02:30 PM (11 years ago)
Author:
livings124
Message:

Have libtransmission keep track of idle seconds. Use this value for determining the stalled minutes in the Mac code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r10998 r10999  
    10021002    s->startDate    = tor->startDate;
    10031003
     1004    if (s->activity == TR_STATUS_DOWNLOAD || s->activity == TR_STATUS_SEED)
     1005        s->idleSecs = difftime(tr_time(), tor->anyDate);
     1006    else
     1007        s->idleSecs = -1;
     1008
    10041009    s->corruptEver     = tor->corruptCur    + tor->corruptPrev;
    10051010    s->downloadedEver  = tor->downloadedCur + tor->downloadedPrev;
Note: See TracChangeset for help on using the changeset viewer.