1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Fix GSO stat bug

This commit is contained in:
winlin 2020-04-15 06:44:09 +08:00
parent 649f2042da
commit dd7b5cf53f
3 changed files with 3 additions and 5 deletions

View file

@ -656,7 +656,7 @@ srs_error_t SrsRtcSenderThread::cycle()
// Stat the RAW RTP packets, which maybe group by GSO.
stat->perf_on_rtp_packets(pkts.packets.size());
// Stat the RTP packets going into kernel.
stat->perf_gso_on_packets(pkts.nn_rtp_pkts);
stat->perf_on_gso_packets(pkts.nn_rtp_pkts);
pprint->elapse();
if (pprint->can_print()) {
@ -1836,7 +1836,6 @@ srs_error_t SrsUdpMuxSender::cycle()
mmsghdr* p = &hotspot[0]; mmsghdr* end = p + pos;
for (p = &hotspot[0]; p < end; p++) {
if (!p->msg_len) {
stat->perf_gso_on_packets(1);
continue;
}
@ -1845,7 +1844,6 @@ srs_error_t SrsUdpMuxSender::cycle()
p->msg_len = 0;
gso_pos++; nn_gso_msgs++; nn_gso_iovs += real_iovs; gso_iovs += real_iovs;
stat->perf_gso_on_packets(real_iovs);
}
}