Skip to content

Commit

Permalink
Merge pull request #12508 from Security-Onion-Solutions/jppsensoroni
Browse files Browse the repository at this point in the history
fix pcapspace function
  • Loading branch information
m0duspwnens authored Mar 5, 2024
2 parents d5b0814 + eaef076 commit 73b45cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions salt/manager/tools/sbin/so-minion
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ function pcapspace() {
local SPACESIZE=$(df -k /nsm | tail -1 | awk '{print $2}' | tr -d \n)
else

local NSMSIZE=$(salt '$MINION_ID' disk.usage --out=json | jq -r '.[]."/nsm"."1K-blocks" ')
local ROOTSIZE=$(salt '$MINION_ID' disk.usage --out=json | jq -r '.[]."/"."1K-blocks" ')
local NSMSIZE=$(salt "$MINION_ID" disk.usage --out=json | jq -r '.[]."/nsm"."1K-blocks" ')
local ROOTSIZE=$(salt "$MINION_ID" disk.usage --out=json | jq -r '.[]."/"."1K-blocks" ')

if [[ "$NSMSIZE" == "null" ]]; then
# Looks like there is no dedicated nsm partition. Using root
Expand All @@ -97,7 +97,7 @@ function pcapspace() {

local s=$(( $SPACESIZE / 1000000 ))
local s1=$(( $s / 4 ))
local s2=$(( $s1 / $lb_procs ))
local s2=$(( $s1 / $CORECOUNT ))

MAXPCAPFILES=$s2

Expand Down

0 comments on commit 73b45cf

Please sign in to comment.