Changeset 0da6739
- Timestamp:
- 01/17/2014 07:15:38 PM (12 years ago)
- 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)
- Location:
- deluge/core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
deluge/core/torrent.py
rbcbeca4 r0da6739 155 155 self.status_funcs = None 156 156 157 # Default total_uploaded to 0, this may be changed by the state158 self.total_uploaded = 0159 160 157 # Set the default options 161 158 self.options = TorrentOptions() … … 168 165 # Load values from state if we have it 169 166 if state: 170 # This is for saving the total uploaded between sessions171 self.total_uploaded = state.total_uploaded172 167 # Set the trackers 173 168 self.set_trackers(state.trackers) -
deluge/core/torrentmanager.py
rbcbeca4 r0da6739 67 67 torrent_id=None, 68 68 filename=None, 69 total_uploaded=0,70 69 trackers=None, 71 70 compact=False, … … 89 88 magnet=None, 90 89 time_added=-1, 91 last_seen_complete=0,92 90 owner=None, 93 91 shared=False): … … 662 660 paused = True 663 661 664 torrent_status = torrent.get_status([665 "total_uploaded",666 "last_seen_complete"667 ], update=True)668 669 662 torrent_state = TorrentState( 670 663 torrent.torrent_id, 671 664 torrent.filename, 672 torrent_status["total_uploaded"],673 665 torrent.trackers, 674 666 torrent.options["compact_allocation"], … … 692 684 torrent.magnet, 693 685 torrent.time_added, 694 torrent_status["last_seen_complete"],695 686 torrent.owner, 696 687 torrent.options["shared"]
Note:
See TracChangeset
for help on using the changeset viewer.