mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Refine get_publish_1stpkt_timeout in time unit
This commit is contained in:
parent
d6828a3e58
commit
170872135d
13 changed files with 46 additions and 40 deletions
|
@ -287,7 +287,7 @@ void show_macro_features()
|
|||
stringstream ss;
|
||||
|
||||
// mw(merged-write)
|
||||
ss << "mw sleep:" << SRS_PERF_MW_SLEEP / SRS_UTIME_MILLISECONDS << "ms";
|
||||
ss << "mw sleep:" << srsu2msi(SRS_PERF_MW_SLEEP) << "ms";
|
||||
|
||||
// mr(merged-read)
|
||||
ss << ". mr ";
|
||||
|
@ -296,7 +296,7 @@ void show_macro_features()
|
|||
#else
|
||||
ss << "enabled:off";
|
||||
#endif
|
||||
ss << ", default:" << SRS_PERF_MR_ENABLED << ", sleep:" << SRS_PERF_MR_SLEEP / SRS_UTIME_MILLISECONDS << "ms";
|
||||
ss << ", default:" << SRS_PERF_MR_ENABLED << ", sleep:" << srsu2msi(SRS_PERF_MR_SLEEP) << "ms";
|
||||
|
||||
srs_trace(ss.str().c_str());
|
||||
}
|
||||
|
@ -340,10 +340,10 @@ void show_macro_features()
|
|||
// others
|
||||
int possible_mr_latency = 0;
|
||||
#ifdef SRS_PERF_MERGED_READ
|
||||
possible_mr_latency = SRS_PERF_MR_SLEEP / SRS_UTIME_MILLISECONDS;
|
||||
possible_mr_latency = srsu2msi(SRS_PERF_MR_SLEEP);
|
||||
#endif
|
||||
srs_trace("system default latency in ms: mw(0-%d) + mr(0-%d) + play-queue(0-%d)",
|
||||
SRS_PERF_MW_SLEEP / SRS_UTIME_MILLISECONDS, possible_mr_latency, SRS_PERF_PLAY_QUEUE*1000);
|
||||
srsu2msi(SRS_PERF_MW_SLEEP), possible_mr_latency, SRS_PERF_PLAY_QUEUE*1000);
|
||||
|
||||
#ifdef SRS_AUTO_MEM_WATCH
|
||||
#warning "srs memory watcher will hurts performance. user should kill by SIGTERM or init.d script."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue