Merge branch 'feature/freqWrite/BK-2020-03' into develop
authorSteven Baltakatei Sandoval <baltakatei@gmail.com>
Fri, 10 Jul 2020 05:45:29 +0000 (05:45 +0000)
committerSteven Baltakatei Sandoval <baltakatei@gmail.com>
Fri, 10 Jul 2020 05:45:29 +0000 (05:45 +0000)
unitproc/bkFreqWrite

index f1c13aaece05588d6cbf5f636888c0a6d0aecc40..e608ba44b3d5a01e94d68eb0acff43942ef145ec 100644 (file)
@@ -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";