mirror of
https://github.com/ossrs/srs.git
synced 2025-02-13 20:01:56 +00:00
把int64_t转成字符串
通过http api 获取streams信息时id显示乱码,应该将int转化为字符串
This commit is contained in:
parent
2f22a3d38b
commit
794563145c
1 changed files with 2 additions and 2 deletions
|
@ -47,7 +47,7 @@ int64_t srs_generate_id()
|
||||||
|
|
||||||
SrsStatisticVhost::SrsStatisticVhost()
|
SrsStatisticVhost::SrsStatisticVhost()
|
||||||
{
|
{
|
||||||
id = srs_generate_id();
|
id = std::to_string(srs_generate_id());
|
||||||
|
|
||||||
clk = new SrsWallClock();
|
clk = new SrsWallClock();
|
||||||
kbps = new SrsKbps(clk);
|
kbps = new SrsKbps(clk);
|
||||||
|
@ -98,7 +98,7 @@ srs_error_t SrsStatisticVhost::dumps(SrsJsonObject* obj)
|
||||||
|
|
||||||
SrsStatisticStream::SrsStatisticStream()
|
SrsStatisticStream::SrsStatisticStream()
|
||||||
{
|
{
|
||||||
id = srs_generate_id();
|
id = std::to_string(srs_generate_id());
|
||||||
vhost = NULL;
|
vhost = NULL;
|
||||||
active = false;
|
active = false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue