X-Git-Url: https://zdv2.bktei.com/gitweb/BK-2020-03.git/blobdiff_plain/588e61ebe36d05078312943ceacb778547587c86..30f77d36a48f1183c347108ce706b9de9c2a35d1:/unitproc/bkFreqWrite

diff --git a/unitproc/bkFreqWrite b/unitproc/bkFreqWrite
index f1c13aa..e608ba4 100644
--- a/unitproc/bkFreqWrite
+++ b/unitproc/bkFreqWrite
@@ -18,7 +18,7 @@ while [[ $SECONDS -lt "scriptTTL" ]]; do
     bufferTOD="$((SECONDS + $bufferTTL))";
     lineCount=0;
     # Consume stdin to fill buffer until buffer time-of-death (TOD) arrives
-    while read -r line && [[ $SECONDS -lt "$bufferTOD" ]]; do
+    while read -r -t "$bufferTTL" line && [[ $SECONDS -lt "$bufferTOD" ]]; do
 	# Append line to buffer array
 	buffer+=("$line");
 	echo "DEBUG:Processing line:$lineCount";