int tr_webseedGetSpeed_Bps( const tr_webseed * w, uint64_t now, int * setme_Bps ) { const int isActive = tr_webseedIsActive( w ); *setme_Bps = isActive ? tr_rcRate_Bps( &w->rateDown, now ) : 0; return isActive; }
int tr_webseedGetSpeed( const tr_webseed * w, uint64_t now, float * setme_KiBs ) { const int isActive = tr_webseedIsActive( w ); *setme_KiBs = isActive ? tr_rcRate( &w->rateDown, now ) : 0.0f; return isActive; }