1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-12 19:31:53 +00:00

Fix the error of pps statistics (#2820)

This commit is contained in:
mapengfei53 2021-12-29 11:25:30 +08:00 committed by GitHub
parent f1a448bc6a
commit 3f8b1a2922
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -652,7 +652,7 @@ srs_error_t SrsUdpMuxListener::cycle()
if (pps_last > 10000 || pps_average > 10000) {
pps_unit = "(w)"; pps_last /= 10000; pps_average /= 10000;
} else if (pps_last > 1000 || pps_average > 1000) {
pps_unit = "(k)"; pps_last /= 10000; pps_average /= 10000;
pps_unit = "(k)"; pps_last /= 1000; pps_average /= 1000;
}
srs_trace("<- RTC RECV #%d, udp %" PRId64 ", pps %d/%d%s, schedule %" PRId64,