Ignore:
Timestamp:
Nov 26, 2007, 8:37:07 PM (15 years ago)
Author:
charles
Message:

plug in the stats.filesAdded field

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/stats.c

    r3987 r3988  
    174174
    175175void
    176 tr_torrentAdded( tr_handle * handle, const tr_torrent * torrent )
     176tr_statsFileCreated( tr_handle * handle )
    177177{
    178178    struct tr_stats_handle * stats = handle->sessionStats;
    179     stats->cumulative.filesAdded += torrent->info.fileCount;
    180     stats->single.filesAdded += torrent->info.fileCount;
     179    ++stats->cumulative.filesAdded;
     180    ++stats->single.filesAdded;
    181181}
Note: See TracChangeset for help on using the changeset viewer.