Changeset 0da6739


Ignore:
Timestamp:
01/17/2014 07:15:38 PM (12 years ago)
Author:
Calum Lind <calumlind+deluge@gmail.com>
Branches:
2.0.x, develop, master
Children:
169b9b
Parents:
bcbeca4
git-author:
Calum Lind <calumlind+deluge@gmail.com> (01/17/2014 07:12:54 PM)
git-committer:
Calum Lind <calumlind+deluge@gmail.com> (01/17/2014 07:15:38 PM)
Message:

Fixes for #367 : Don't store last_seen_complete and total_uploaded in state file

Location:
deluge/core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • deluge/core/torrent.py

    rbcbeca4 r0da6739  
    155155        self.status_funcs = None
    156156
    157         # Default total_uploaded to 0, this may be changed by the state
    158         self.total_uploaded = 0
    159 
    160157        # Set the default options
    161158        self.options = TorrentOptions()
     
    168165        # Load values from state if we have it
    169166        if state:
    170             # This is for saving the total uploaded between sessions
    171             self.total_uploaded = state.total_uploaded
    172167            # Set the trackers
    173168            self.set_trackers(state.trackers)
  • deluge/core/torrentmanager.py

    rbcbeca4 r0da6739  
    6767                 torrent_id=None,
    6868                 filename=None,
    69                  total_uploaded=0,
    7069                 trackers=None,
    7170                 compact=False,
     
    8988                 magnet=None,
    9089                 time_added=-1,
    91                  last_seen_complete=0,
    9290                 owner=None,
    9391                 shared=False):
     
    662660                paused = True
    663661
    664             torrent_status = torrent.get_status([
    665                 "total_uploaded",
    666                 "last_seen_complete"
    667             ], update=True)
    668 
    669662            torrent_state = TorrentState(
    670663                torrent.torrent_id,
    671664                torrent.filename,
    672                 torrent_status["total_uploaded"],
    673665                torrent.trackers,
    674666                torrent.options["compact_allocation"],
     
    692684                torrent.magnet,
    693685                torrent.time_added,
    694                 torrent_status["last_seen_complete"],
    695686                torrent.owner,
    696687                torrent.options["shared"]
Note: See TracChangeset for help on using the changeset viewer.