mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Cover JSON codec. 3.0.62
This commit is contained in:
parent
aee704fd1f
commit
c7602d8cee
3 changed files with 72 additions and 2 deletions
|
@ -1585,7 +1585,7 @@ string SrsJsonAny::dumps()
|
|||
case SRS_JSON_Number: {
|
||||
// len(max int64_t) is 20, plus one "+-."
|
||||
char tmp[22];
|
||||
snprintf(tmp, 22, "%.6f", to_number());
|
||||
snprintf(tmp, 22, "%.2f", to_number());
|
||||
return tmp;
|
||||
}
|
||||
case SRS_JSON_Null: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue