mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Enable perf stat by default
This commit is contained in:
parent
f0015a7cc1
commit
21ede1f084
2 changed files with 4 additions and 4 deletions
|
@ -449,8 +449,8 @@ rtc_server {
|
||||||
# default: 127
|
# default: 127
|
||||||
padding 127;
|
padding 127;
|
||||||
# Whether enable the perf stat at http://localhost:1985/api/v1/perf
|
# Whether enable the perf stat at http://localhost:1985/api/v1/perf
|
||||||
# default: off
|
# default: on
|
||||||
perf_stat off;
|
perf_stat on;
|
||||||
}
|
}
|
||||||
|
|
||||||
vhost rtc.vhost.srs.com {
|
vhost rtc.vhost.srs.com {
|
||||||
|
|
|
@ -4860,7 +4860,7 @@ int SrsConfig::get_rtc_server_padding()
|
||||||
|
|
||||||
bool SrsConfig::get_rtc_server_perf_stat()
|
bool SrsConfig::get_rtc_server_perf_stat()
|
||||||
{
|
{
|
||||||
static bool DEFAULT = false;
|
static bool DEFAULT = true;
|
||||||
|
|
||||||
SrsConfDirective* conf = root->get("rtc_server");
|
SrsConfDirective* conf = root->get("rtc_server");
|
||||||
if (!conf) {
|
if (!conf) {
|
||||||
|
@ -4872,7 +4872,7 @@ bool SrsConfig::get_rtc_server_perf_stat()
|
||||||
return DEFAULT;
|
return DEFAULT;
|
||||||
}
|
}
|
||||||
|
|
||||||
return SRS_CONF_PERFER_FALSE(conf->arg0());
|
return SRS_CONF_PERFER_TRUE(conf->arg0());
|
||||||
}
|
}
|
||||||
|
|
||||||
SrsConfDirective* SrsConfig::get_rtc(string vhost)
|
SrsConfDirective* SrsConfig::get_rtc(string vhost)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue