mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine code, donot remove the detail when hls disabled.
This commit is contained in:
parent
afd05f71c3
commit
01be68fe58
1 changed files with 6 additions and 3 deletions
|
@ -299,9 +299,12 @@ int SrsStatistic::dumps_vhosts(stringstream& ss)
|
|||
<< SRS_JFIELD_ORG("send_bytes", vhost->kbps->get_send_bytes()) << SRS_JFIELD_CONT
|
||||
<< SRS_JFIELD_ORG("recv_bytes", vhost->kbps->get_recv_bytes()) << SRS_JFIELD_CONT
|
||||
<< SRS_JFIELD_NAME("hls") << SRS_JOBJECT_START
|
||||
<< SRS_JFIELD_BOOL("enabled", hls_enabled) << SRS_JFIELD_CONT
|
||||
<< SRS_JFIELD_ORG("fragment", _srs_config->get_hls_fragment(vhost->vhost))
|
||||
<< SRS_JOBJECT_END
|
||||
<< SRS_JFIELD_BOOL("enabled", hls_enabled);
|
||||
if (hls_enabled) {
|
||||
ss << SRS_JFIELD_CONT;
|
||||
ss << SRS_JFIELD_ORG("fragment", _srs_config->get_hls_fragment(vhost->vhost));
|
||||
}
|
||||
ss << SRS_JOBJECT_END
|
||||
<< SRS_JOBJECT_END;
|
||||
}
|
||||
ss << SRS_JARRAY_END;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue