fix
This commit is contained in:
parent
bb753146ac
commit
c494d7c023
@ -37,7 +37,7 @@ normalized(#point{measurement = Name, tags = Tags, fields = Fields, time = Time}
|
||||
erlang:iolist_to_binary([TagItems, <<" ">>, FieldItems, <<" ">>, integer_to_binary(NTime)]).
|
||||
|
||||
field_val(V) when is_integer(V) ->
|
||||
<<(integer_to_binary(V))/binary, "i">>;
|
||||
integer_to_binary(V);
|
||||
field_val(V) when is_float(V) ->
|
||||
%% 默认按照浮点数表示
|
||||
iot_util:float_to_binary(V, 6);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user