Add relative times, allow "points" param to work with "start_time"
authorSam Moore <[email protected]>
Mon, 9 Sep 2013 04:45:45 +0000 (12:45 +0800)
committerSam Moore <[email protected]>
Mon, 9 Sep 2013 04:45:45 +0000 (12:45 +0800)
commit7e7ca4729b63cdbdc037775c4e8cd2f87a668a63
tree1aa15709742365f19a451e6118f1cbec583b8743
parente27bcae7779827a3858cf82d18ede9c66ee6d950
Add relative times, allow "points" param to work with "start_time"

Eg: To get a single point at a given time: http://localhost/api/sensors?id=0&start_time=5&points=1

The binary search means it will either get the closest point before or after the specified time.

Should probably make it so that FindTime will always get the same index given the same input.
Otherwise problems might arise.

Need some more argument checking?
server/sensor.c

UCC git Repository :: git.ucc.asn.au