diff options
| author | erdgeist <> | 2009-09-02 02:18:36 +0000 |
|---|---|---|
| committer | erdgeist <> | 2009-09-02 02:18:36 +0000 |
| commit | 0bf88427c6c33f0aabc4e8374ed77542c4f18d2a (patch) | |
| tree | 3290e11f0a5f95c3ffdb4d2d1d04bf0c05a7e366 /trackerlogic.c | |
| parent | c76814cfecbf2fabcc316e7f14f52766a8f59a45 (diff) | |
Add spotting woodpeckers, thanks to Vasya P. again
Diffstat (limited to 'trackerlogic.c')
| -rw-r--r-- | trackerlogic.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/trackerlogic.c b/trackerlogic.c index 18895ba..6ca1ad2 100644 --- a/trackerlogic.c +++ b/trackerlogic.c | |||
| @@ -145,7 +145,10 @@ size_t add_peer_to_torrent_and_return_peers( ot_hash hash, ot_peer *peer, PROTO_ | |||
| 145 | 145 | ||
| 146 | } else { | 146 | } else { |
| 147 | stats_issue_event( EVENT_RENEW, 0, OT_PEERTIME( peer_dest ) ); | 147 | stats_issue_event( EVENT_RENEW, 0, OT_PEERTIME( peer_dest ) ); |
| 148 | 148 | #ifdef WANT_SPOT_WOODPECKER | |
| 149 | if( ( OT_PEERTIME(peer_dest) > 0 ) && ( OT_PEERTIME(peer_dest) < 20 ) ) | ||
| 150 | stats_issue_event( EVENT_WOODPECKER, 0, (uintptr_t)peer ); | ||
| 151 | #endif | ||
| 149 | #ifdef WANT_SYNC_LIVE | 152 | #ifdef WANT_SYNC_LIVE |
| 150 | /* Won't live sync peers that come back too fast. Only exception: | 153 | /* Won't live sync peers that come back too fast. Only exception: |
| 151 | fresh "completed" reports */ | 154 | fresh "completed" reports */ |
