From: Steven Baltakatei Sandoval Date: Fri, 3 Jul 2020 19:49:50 +0000 (+0000) Subject: fix(bkgpslog):Reduce logging downtime between buffer rounds X-Git-Url: https://zdv2.bktei.com/gitweb/EVA-2020-02.git/commitdiff_plain/e47e80485f3c3192111ecf88bb09ae5d192cc208?ds=sidebyside;hp=e47e80485f3c3192111ecf88bb09ae5d192cc208 fix(bkgpslog):Reduce logging downtime between buffer rounds Reduce logging downtime between buffer rounds by moving commands into the asynchronous `magicWriteBuffer()` function that is spun off immediately after `gpspipe` has collected data. Add functionality to `dateTimeShort()` and `dateShort` so the start time of each saved chunk appended to the `tar` archive can be calculated indirectly from when `magicWriteBuffer()` starts rather than performing slow `date` and associated bash variable changes in the main loop. This start time is needed to name each inserted file as well as to identify which `tar` file to insert into. Save gpspipe buffer data `/dev/shm` instead of a Bash variable. Add `appendFileTar()` function to facilitate reading and processing of buffer data from `/dev/shm`. ---