Ignore:
Timestamp:
Sep 12, 2010, 7:49:06 PM (11 years ago)
Author:
livings124
Message:

fix a display issue with the idle time for a split second after the transfer starts, since the transfer would be marked as downloading but would not yet have a start time

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r11204 r11206  
    772772
    773773    tor->error = TR_STAT_OK;
    774    
     774
    775775    tor->finishedSeedingByIdle = FALSE;
    776776
     
    11121112    s->startDate    = tor->startDate;
    11131113
    1114     if (s->activity == TR_STATUS_DOWNLOAD || s->activity == TR_STATUS_SEED)
     1114    if ((s->activity == TR_STATUS_DOWNLOAD || s->activity == TR_STATUS_SEED) && s->startDate != 0)
    11151115        s->idleSecs = difftime(tr_time(), MAX(s->startDate, s->activityDate));
    11161116    else
Note: See TracChangeset for help on using the changeset viewer.