Ignore:
Timestamp:
Jan 30, 2006, 2:13:40 AM (16 years ago)
Author:
titer
Message:

Removed now unused tables and some now unused code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/transmission.c

    r60 r61  
    279279{
    280280    tr_torrent_t * tor = h->torrents[t];
    281     uint64_t       now;
    282     int            i;
    283281
    284282    if( tor->status & ( TR_STATUS_STOPPING | TR_STATUS_STOPPED ) )
     
    291289    tor->tracker  = tr_trackerInit( h, tor );
    292290
    293     now = tr_date();
    294     for( i = 0; i < 10; i++ )
    295     {
    296         tor->dates[i] = now;
    297     }
    298 
     291    tor->date = tr_date();
    299292    tor->die = 0;
    300293    tr_threadCreate( &tor->thread, downloadLoop, tor );
     
    332325    }
    333326
    334     memset( tor->downloaded, 0, sizeof( tor->downloaded ) );
    335     memset( tor->uploaded,   0, sizeof( tor->uploaded ) );
     327    tor->downloaded = 0;
     328    tor->uploaded   = 0;
    336329}
    337330
     
    452445        }
    453446
    454         s[i].downloaded = tor->downloaded[9];
    455         s[i].uploaded   = tor->uploaded[9];
     447        s[i].downloaded = tor->downloaded;
     448        s[i].uploaded   = tor->uploaded;
    456449
    457450        s[i].folder = tor->destination;
Note: See TracChangeset for help on using the changeset viewer.