Change sensor data transfer
authorSam Moore <[email protected]>
Sun, 18 Aug 2013 13:11:37 +0000 (21:11 +0800)
committerSam Moore <[email protected]>
Sun, 18 Aug 2013 13:11:37 +0000 (21:11 +0800)
 - Keep binary file always open (mode "a+b"); don't need to reopen each time it is accessed
 - Fill query buffer with most recent datapoints (as opposed to trying to transfer datapoints in sequential order)
   - Better because it keeps client as up to date as possible
   - Rather than client getting increasingly outdated data

TODO:
 - Test to see if buffers in front of writing to file worth it
   - Probably will be; saves from having to unlock mutex on every single data point
 - Merge Query and FCGI stuff


No differences found

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