Changeset 12955
- Timestamp:
- Oct 9, 2011, 12:18:18 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/announcer.c
r12683 r12955 1073 1073 int i; 1074 1074 const char * str; 1075 bool got_scrape_info = false;1075 int scrape_fields = 0; 1076 1076 const bool isStopped = event == TR_ANNOUNCE_EVENT_STOPPED; 1077 1077 … … 1082 1082 tracker->consecutiveFailures = 0; 1083 1083 1084 /* if the tracker included scrape fields in its announce response, 1085 then a separate scrape isn't needed */ 1086 1087 got_scrape_info = response->seeders 1088 || response->leechers 1089 || response->downloads; 1090 1091 if( got_scrape_info ) 1084 if( response->seeders >= 0 ) 1092 1085 { 1093 1086 tracker->seederCount = response->seeders; 1087 ++scrape_fields; 1088 } 1089 1090 if( response->leechers >= 0 ) 1091 { 1094 1092 tracker->leecherCount = response->leechers; 1093 ++scrape_fields; 1094 } 1095 if( response->downloads >= 0 ) 1096 { 1095 1097 tracker->downloadCount = response->downloads; 1098 ++scrape_fields; 1096 1099 } 1097 1100 … … 1131 1134 tier->isRunning = data->isRunningOnSuccess; 1132 1135 1133 if( got_scrape_info ) 1136 /* if the tracker included scrape fields in its announce response, 1137 then a separate scrape isn't needed */ 1138 if( scrape_fields >= 3 ) 1134 1139 { 1135 1140 tr_tordbg( tier->tor, "Announce response contained scrape info; "
Note: See TracChangeset
for help on using the changeset viewer.