mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Refine get_queue_length and set_queue_size in time unit
This commit is contained in:
parent
e3983b3513
commit
c1b64ba24f
13 changed files with 43 additions and 32 deletions
|
@ -64,7 +64,7 @@ SrsBufferCache::SrsBufferCache(SrsSource* s, SrsRequest* r)
|
|||
trd = new SrsSTCoroutine("http-stream", this);
|
||||
|
||||
// TODO: FIXME: support reload.
|
||||
fast_cache = _srs_config->get_vhost_http_remux_fast_cache(req->vhost);
|
||||
fast_cache = srs_utime_t(_srs_config->get_vhost_http_remux_fast_cache(req->vhost) * SRS_UTIME_SECONDS);
|
||||
}
|
||||
|
||||
SrsBufferCache::~SrsBufferCache()
|
||||
|
@ -108,7 +108,8 @@ srs_error_t SrsBufferCache::dump_cache(SrsConsumer* consumer, SrsRtmpJitterAlgor
|
|||
return srs_error_wrap(err, "dump packets");
|
||||
}
|
||||
|
||||
srs_trace("http: dump cache %d msgs, duration=%dms, cache=%.2fs", queue->size(), srsu2msi(queue->duration()), fast_cache);
|
||||
srs_trace("http: dump cache %d msgs, duration=%dms, cache=%dms",
|
||||
queue->size(), srsu2msi(queue->duration()), srsu2msi(fast_cache));
|
||||
|
||||
return err;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue