~ubuntu-branches/ubuntu/quantal/bittornado/quantal

« back to all changes in this revision

Viewing changes to BitTornado/BT1/PiecePicker.py

  • Committer: Bazaar Package Importer
  • Author(s): Cameron Dale
  • Date: 2008-07-19 16:08:44 UTC
  • mfrom: (0.1.14 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080719160844-nnmp02ar9pri55v1
Tags: 0.3.18-7
* Refresh all the quilt patches (Closes: #485320)
* Update standards version to 3.8.0
  - Add a README.source file pointing to the quilt documentation
* medium urgency to get it into lenny

Show diffs side-by-side

added added

removed removed

Lines of Context:
282
282
        if olddl is None:
283
283
            ip = connection.get_ip()
284
284
            olddl = self.past_ips.get(ip)
285
 
            if olddl is not None:                               # peer reconnected
 
285
            if olddl is not None:                           # peer reconnected
286
286
                self.seed_connections[connection] = olddl
 
287
                if not looser_upload:
 
288
                    self.seed_got_haves[olddl] -= 1         # penalize
287
289
        if olddl is not None:
288
290
            if looser_upload:
289
291
                num = 1     # send a new have even if it hasn't spread that piece elsewhere