1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Refine get_hls_fragment in time unit

This commit is contained in:
winlin 2019-04-16 08:14:12 +08:00
parent 402e614471
commit ca705a6f62
6 changed files with 20 additions and 20 deletions

View file

@ -90,7 +90,7 @@ srs_error_t SrsStatisticVhost::dumps(SrsJsonObject* obj)
hls->set("enabled", SrsJsonAny::boolean(hls_enabled));
if (hls_enabled) {
hls->set("fragment", SrsJsonAny::number(_srs_config->get_hls_fragment(vhost)));
hls->set("fragment", SrsJsonAny::number(srsu2msi(_srs_config->get_hls_fragment(vhost))/1000.0));
}
return err;