Skip to content

Commit

Permalink
Fix the error of pps statistics (#2820)
Browse files Browse the repository at this point in the history
  • Loading branch information
mapengfei53 authored Dec 29, 2021
1 parent f1a448b commit 3f8b1a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trunk/src/app/srs_app_listener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3f8b1a2

Please sign in to comment.