[api] correct the comment on JSON -> Mochijson2 conversion

This commit is contained in:
Bart Van Der Meerssche 2011-03-27 19:18:13 +00:00
parent 7e37088e7d
commit c9f3eb8431
1 changed files with 2 additions and 2 deletions

View File

@ -137,8 +137,8 @@ to_json(ReqData, #state{rrdSensor = RrdSensor, rrdStart = RrdStart, rrdEnd = Rrd
{{halt, 404}, ReqData, State}
end.
% JSON: {"measurements":[[<ts1>,<value1>],...,[<tsn>,<valuen>]]}
% Mochijson2: {struct,[{<<"measurements">>,[[<ts11>,<value11>],...,[<ts1m>,<value1m>]]}]}
% JSON: {"measurements":[[<TS1>,<VALUE1>],...,[<TSn>,<VALUEn>]]}
% Mochijson2: {struct,[{<<"measurements">>,[[<TS1>,<VALUE1>],...,[<TSn>,<VALUEn>]]}]}
process_post(ReqData, #state{rrdSensor = RrdSensor} = State) ->
Path = "var/data/base/",