Lines Matching defs:cancels
2875 int cancels = 0;
2878 /* Count up how many blocks & cancels each peer has.
2880 * There are two situations where we send out cancels --
2902 cancels += c;
2905 if( cancels > 0 )
2909 const double cancelRate = cancels / (double)(cancels + blocks);
2964 const int cancels = tr_historyGet( &peer->cancelsSentToPeer, now, CANCEL_HISTORY_SEC );
2966 if( !blocks && !cancels )
2968 else if( !cancels )
2972 else if( ( cancels * 10 ) < blocks )