summaryrefslogtreecommitdiff
path: root/trackerlogic.c
diff options
context:
space:
mode:
authorerdgeist <>2009-11-12 10:18:27 +0000
committererdgeist <>2009-11-12 10:18:27 +0000
commitf4409df68abe9a27686a157ffa8da33603fc91ad (patch)
tree6c99371a0fe2e12230c9c22bd263367251877762 /trackerlogic.c
parentb1bf030f922685b2613c7826fac306b6c2a82552 (diff)
Allow logging of completed events to syslog
Diffstat (limited to 'trackerlogic.c')
-rw-r--r--trackerlogic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/trackerlogic.c b/trackerlogic.c
index 6ca1ad2..f70dd94 100644
--- a/trackerlogic.c
+++ b/trackerlogic.c
@@ -138,7 +138,7 @@ size_t add_peer_to_torrent_and_return_peers( ot_hash hash, ot_peer *peer, PROTO_
138 torrent->peer_list->peer_count++; 138 torrent->peer_list->peer_count++;
139 if( OT_PEERFLAG(peer) & PEER_FLAG_COMPLETED ) { 139 if( OT_PEERFLAG(peer) & PEER_FLAG_COMPLETED ) {
140 torrent->peer_list->down_count++; 140 torrent->peer_list->down_count++;
141 stats_issue_event( EVENT_COMPLETED, 0, 0 ); 141 stats_issue_event( EVENT_COMPLETED, 0, (uintptr_t)torrent->hash );
142 } 142 }
143 if( OT_PEERFLAG(peer) & PEER_FLAG_SEEDING ) 143 if( OT_PEERFLAG(peer) & PEER_FLAG_SEEDING )
144 torrent->peer_list->seed_count++; 144 torrent->peer_list->seed_count++;