X-Git-Url: https://zdv2.bktei.com/gitweb/EVA-2020-02.git/blobdiff_plain/e879cdc33c40fb5b871ad7376094193925963e8c..ceb6d15e2f20de620fcbd6c2ddbca5eaeb914296:/exec/bklog-plan.org?ds=sidebyside diff --git a/exec/bklog-plan.org b/exec/bklog-plan.org index 9908efb..597f653 100644 --- a/exec/bklog-plan.org +++ b/exec/bklog-plan.org @@ -53,6 +53,25 @@ in seconds between ~bufferTimestampOld~ and ~bufferTimestampNew~ may be calculated and an appropriate duration string generated from the ~timeDuration()~ function. +** TODO Update ~SECONDS~ variable during while read loop +2020-07-14T00:58Z; bktei> The starting timestamps of each output file +still drifts against system time. Although the ~while read~ loop does +not lose data, the drift causes the output files to be named weirdly. +A possible solution is to correct the ~SECONDS~ variable against the +current system time. Because ~date~ calls are slow, this correction +should not be made after every line. At a minimum, the correction +should occur once per buffer round, possibly after the buffer round +has completed. If more frequent corrections are required, then the +number of lines being read in each buffer round should be tracked and +a modulus comparison may be implemented within the ~while read~ loop +so that a correction is made after some fraction of the expected lines +to be read are read. +** TODO Account for "early-exit" bug in input script +2020-07-14T03:00Z; bktei> What happens if the script piping its stdout +into ~bklog~ immediately exits without providing any stdout (ex: a +python script with a missing module)? ~bklog~ should be able to detect +the latest exit code and exit early. It should also be able to detect +if the incoming pipe is closed. * bklog narrative