yuanrongxi / razor

A google's congestion Control Algorithm
MIT License
352 stars 152 forks source link

日志打印有小错误? #57

Open adcen0107 opened 2 years ago

adcen0107 commented 2 years ago

void bitrate_controller_on_report(bitrate_controller_t* ctrl, uint32_t rtt, int64_t cur_ts, uint8_t fraction_loss, int packets_num, uint32_t acked_bitrate) { if (packets_num > 0){ sender_estimation_update_block(ctrl->est, fraction_loss, rtt, packets_num, cur_ts, acked_bitrate); maybe_trigger_network_changed(ctrl); } else{ razor_warn("bitrate controller recv packets_num < 0\n"); //should recv packets_num <= 0 ? } }