Changeset 10153
- Timestamp:
- Feb 10, 2010, 3:57:41 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/announcer.c
r10150 r10153 352 352 uint64_t byteCounts[3]; 353 353 354 tr_ptrArray announceEvents; /* const char* */355 356 354 tr_ptrArray trackers; /* tr_tracker_item */ 357 355 tr_tracker_item * currentTracker; … … 371 369 372 370 time_t announceAt; 373 //const char * announceEvent;371 tr_ptrArray announceEvents; /* const char* */ 374 372 375 373 /* unique lookup key */ … … 1423 1421 pos = i; 1424 1422 1425 fprintf( stderr, "in the queue: " );1426 for( i=0; i<n; ++i ) fprintf( stderr, "(%d)%s, ", i, events[i] );1427 fprintf( stderr, "\n" );1428 1429 1423 /* rule #2: if the next two events are the same, ignore the first one */ 1430 1424 for( i=0; pos<0 && i<=n-2; ++i ) … … 1445 1439 1446 1440 /* announceEvents array upkeep */ 1447 fprintf( stderr, "what's left in the queue: " );1448 1441 tmp = TR_PTR_ARRAY_INIT; 1449 for( i=pos+1; i<n; ++i ) { 1450 fprintf( stderr, "(%d)%s, ", i, events[i] ); 1442 for( i=pos+1; i<n; ++i ) 1451 1443 tr_ptrArrayAppend( &tmp, events[i] ); 1452 }1453 1444 tr_ptrArrayDestruct( &tier->announceEvents, NULL ); 1454 1445 tier->announceEvents = tmp; 1455 fprintf( stderr, "\n" );1456 1457 fprintf( stderr, "returning [%s] (pos %d)\n", (str?str:"(null)"), pos );1458 1446 1459 1447 return str;
Note: See TracChangeset
for help on using the changeset viewer.