From 99f6bd4e6c6a6e51ffb667c51c91275ce927965c Mon Sep 17 00:00:00 2001 From: Steven Baltakatei Sandoval Date: Sat, 11 Jul 2020 04:30:51 +0000 Subject: [PATCH] test(bklog):Add debug message in main loop --- exec/bklog | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/exec/bklog b/exec/bklog index cc0efa6..49ec813 100644 --- a/exec/bklog +++ b/exec/bklog @@ -11,7 +11,7 @@ dirTmpDefault="/dev/shm"; # Default parent of working directory # Script Metadata scriptName="bklog"; # Define basename of script file. -scriptVersion="0.1.9"; # Define version of script. +scriptVersion="0.1.10"; # Define version of script. scriptURL="https://gitlab.com/baltakatei/ninfacyzga-01"; # Define wesite hosting this script. scriptTimeStart="$(date +%Y%m%dT%H%M%S.%N)"; # YYYYmmddTHHMMSS.NNNNNNNNN scriptHostname=$(hostname); # Save hostname of system running this script. @@ -1251,6 +1251,7 @@ main() { # MAIN LOOP: Run until script TTL seconds pass bufferRound=0; while [[ $SECONDS -lt "scriptTTL" ]]; do + vbm "DEBUG:Starting buffer round:$bufferRound"; bufferTOD="$((SECONDS + bufferTTL))"; # Set buffer round time-of-death # Consume stdin to fill buffer until buffer time-of-death (TOD) arrives while read -r -t "$bufferTTL" line && [[ $SECONDS -lt "$bufferTOD" ]]; do -- 2.30.2