mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Refine RTC server log
This commit is contained in:
parent
78aad11eeb
commit
2b132d6d64
2 changed files with 3 additions and 2 deletions
|
@ -432,7 +432,7 @@ rtc_server {
|
||||||
encrypt on;
|
encrypt on;
|
||||||
# We listen multiple times at the same port, by REUSEPORT, to increase the UDP queue.
|
# We listen multiple times at the same port, by REUSEPORT, to increase the UDP queue.
|
||||||
# Note that you can set to 1 and increase the system UDP buffer size by net.core.rmem_max
|
# Note that you can set to 1 and increase the system UDP buffer size by net.core.rmem_max
|
||||||
# or just increase this to get larger UDP recv and send buffer.
|
# and net.core.rmem_default or just increase this to get larger UDP recv and send buffer.
|
||||||
# default: 4
|
# default: 4
|
||||||
reuseport 4;
|
reuseport 4;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1719,7 +1719,8 @@ srs_error_t SrsRtcServer::cycle()
|
||||||
pps_last = (int)((nn_msgs - nn_msgs_last) * SRS_UTIME_SECONDS / (srs_get_system_time() - time_last));
|
pps_last = (int)((nn_msgs - nn_msgs_last) * SRS_UTIME_SECONDS / (srs_get_system_time() - time_last));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
srs_trace("-> RTC SEND %d by sendmmsg %d, total %" PRId64 ", pps %d/%d", pos, max_sendmmsg, nn_msgs, pps_average, pps_last);
|
srs_trace("-> RTC SEND %d by sendmmsg %d, total %" PRId64 ", pps %d/%d, sessions %d/%d",
|
||||||
|
pos, max_sendmmsg, nn_msgs, pps_average, pps_last, (int)map_username_session.size(), (int)map_id_session.size());
|
||||||
nn_msgs_last = nn_msgs; time_last = srs_get_system_time();
|
nn_msgs_last = nn_msgs; time_last = srs_get_system_time();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue