mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Refine code for changing id of stat to string
This commit is contained in:
parent
1c41f5d796
commit
d520679547
5 changed files with 7 additions and 7 deletions
|
@ -47,7 +47,7 @@ string srs_generate_id()
|
|||
|
||||
SrsStatisticVhost::SrsStatisticVhost()
|
||||
{
|
||||
id = srs_int2str(srs_generate_id());
|
||||
id = srs_generate_id();
|
||||
|
||||
clk = new SrsWallClock();
|
||||
kbps = new SrsKbps(clk);
|
||||
|
@ -98,7 +98,7 @@ srs_error_t SrsStatisticVhost::dumps(SrsJsonObject* obj)
|
|||
|
||||
SrsStatisticStream::SrsStatisticStream()
|
||||
{
|
||||
id = srs_int2str(srs_generate_id());
|
||||
id = srs_generate_id();
|
||||
vhost = NULL;
|
||||
active = false;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue