mirror of
https://github.com/emqx/neuron.git
synced 2026-10-17 04:40:42 +08:00
Merge pull request #2108 from hxy7yx/v2.8-2
[v2.8]rename precision when read floating-tag
This commit is contained in:
@@ -61,7 +61,7 @@ int neu_json_encode_read_resp(void *json_object, void *param)
|
||||
|
||||
if (p_tag->t == NEU_JSON_FLOAT || p_tag->t == NEU_JSON_DOUBLE) {
|
||||
if_precision = 1;
|
||||
tag_elems[2].name = "precision";
|
||||
tag_elems[2].name = "transferPrecision";
|
||||
tag_elems[2].t = NEU_JSON_INT;
|
||||
tag_elems[2].v.val_int =
|
||||
p_tag->precision > 0 ? p_tag->precision : 1;
|
||||
@@ -143,7 +143,7 @@ int neu_json_encode_read_paginate_resp(void *json_object, void *param)
|
||||
|
||||
if (p_tag->t == NEU_JSON_FLOAT || p_tag->t == NEU_JSON_DOUBLE) {
|
||||
if_precision = 1;
|
||||
tag_elems[8].name = "precision";
|
||||
tag_elems[8].name = "transferPrecision";
|
||||
tag_elems[8].t = NEU_JSON_INT;
|
||||
tag_elems[8].v.val_int =
|
||||
p_tag->precision > 0 ? p_tag->precision : 1;
|
||||
|
||||
Reference in New Issue
Block a user