Merge pull request #12416 from Security-Onion-Solutions/TOoSmOotH-patch-2

Fix Loss Calculation for Stenographer
This commit is contained in:
Mike Reeves
2024-02-22 12:52:36 -05:00
committed by GitHub

View File

@@ -10,8 +10,8 @@
# if this script isn't already running
if [[ ! "`pidof -x $(basename $0) -o %PPID`" ]]; then
CHECKIT=$(grep "Thread 0" /var/log/stenographer/stenographer.log |tac |head -2|wc -l)
STENOGREP=$(grep "Thread 0" /var/log/stenographer/stenographer.log |tac |head -2)
CHECKIT=$(grep "Thread 0 stats" /var/log/stenographer/stenographer.log |tac |head -2|wc -l)
STENOGREP=$(grep "Thread 0 stats" /var/log/stenographer/stenographer.log |tac |head -2)
declare RESULT=($STENOGREP)