X-Git-Url: https://zdv2.bktei.com/gitweb/EVA-2020-02.git/blobdiff_plain/cfd105b555e4f3b898c79a5d58e16c803036cb06..5d311809aac180b453b55ae3cdd2b872fb5b985e:/exec/bklog diff --git a/exec/bklog b/exec/bklog index 6fc61e4..af53431 100644 --- a/exec/bklog +++ b/exec/bklog @@ -1235,15 +1235,10 @@ main() { bufferRound=0; while [[ $SECONDS -lt "scriptTTL" ]]; do bufferTOD="$((SECONDS + bufferTTL))"; # Set buffer round time-of-death - lineCount=0; # Debug counter # Consume stdin to fill buffer until buffer time-of-death (TOD) arrives while read -r -t "$bufferTTL" line && [[ $SECONDS -lt "$bufferTOD" ]]; do # Append line to buffer array buffer+=("$line"); - vbm "DEBUG:Processing line:$lineCount"; - vbm "DEBUG:Current line :$line"; - vbm "DEBUG:buf elem count :${#buffer[@]}"; - ((lineCount++)); done; # Create dir_tmp if missing if ! [[ -d "$dir_tmp" ]]; then yell "ERROR:dir_tmp existence failure:$dir_tmp"; try mkdir "$dir_tmp" && vbm "DEBUG:Working dir recreated dir_tmp:$dir_tmp"; fi