src/graph_ident.c: ident_data_to_json: Average data points ...
authorFlorian Forster <octo@verplant.org>
Sat, 11 Sep 2010 07:53:23 +0000 (09:53 +0200)
committerFlorian Forster <octo@verplant.org>
Sat, 11 Sep 2010 07:53:23 +0000 (09:53 +0200)
commite0517eecbe0add2e72bef226f6d1bf0f279c9ed0
tree556de65926958c292802a086d24abde878bd574c
parent02b3e17bba6c253164eb9fa7a12a39d7e15ad6a3
src/graph_ident.c: ident_data_to_json: Average data points ...

... to send between 400 and 800 values. This reduces the time taken to
receive the values sent by the "instance_data_json" action considerably.
We should, however, do this in the data provider function or possibly in
the "instance_data_json" action. Also supporting other CFs would be a
wise move and while we're scanning the data we might compute total
average, minimum and maximum as well.
src/graph_ident.c