1
0
Fork 0
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:
winlin 2019-10-22 08:54:29 +08:00
parent aee704fd1f
commit c7602d8cee
3 changed files with 72 additions and 2 deletions

View file

@ -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: {