mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-19 07:23:06 +01:00
[refactor] Remove is_smooshed var
This commit is contained in:
@@ -35,7 +35,7 @@ whiptail_basic_zeek() {
|
||||
|
||||
[ -n "$TESTING" ] && return
|
||||
|
||||
if [[ $is_smooshed ]]; then
|
||||
if [[ $is_node && $is_sensor && ! $is_eval ]]; then
|
||||
local PROCS=$(expr $lb_procs / 2)
|
||||
if [ "$PROCS" -lt 1 ]; then PROCS=1; else PROCS=$PROCS; fi
|
||||
else
|
||||
@@ -53,7 +53,7 @@ whiptail_basic_suri() {
|
||||
|
||||
[ -n "$TESTING" ] && return
|
||||
|
||||
if [[ $is_smooshed ]]; then
|
||||
if [[ $is_node && $is_sensor && ! $is_eval ]];; then
|
||||
local PROCS=$(expr $lb_procs / 2)
|
||||
if [ "$PROCS" -lt 1 ]; then PROCS=1; else PROCS=$PROCS; fi
|
||||
else
|
||||
@@ -77,7 +77,7 @@ whiptail_zeek_pins() {
|
||||
cpu_core_list_whiptail+=("$item" "OFF")
|
||||
done
|
||||
|
||||
if [[ $is_smooshed ]]; then
|
||||
if [[ $is_node && $is_sensor && ! $is_eval ]];; then
|
||||
local PROCS=$(expr $lb_procs / 2)
|
||||
if [ "$PROCS" -lt 1 ]; then PROCS=1; else PROCS=$PROCS; fi
|
||||
else
|
||||
@@ -1354,11 +1354,11 @@ whiptail_suricata_pins() {
|
||||
readarray -t filtered_core_list <<< "$(echo "${cpu_core_list[@]}" "${ZEEKPINS[@]}" | xargs -n1 | sort | uniq -u | awk '{print $1}')"
|
||||
|
||||
local filtered_core_str=()
|
||||
for item in "${filtered_core_list[@]}"; do
|
||||
filtered_core_str+=("$item" "")
|
||||
done
|
||||
for item in "${filtered_core_list[@]}"; do
|
||||
filtered_core_str+=("$item" "")
|
||||
done
|
||||
|
||||
if [[ $is_smooshed ]]; then
|
||||
if [[ $is_node && $is_sensor && ! $is_eval ]];; then
|
||||
local PROCS=$(expr $lb_procs / 2)
|
||||
if [ "$PROCS" -lt 1 ]; then PROCS=1; else PROCS=$PROCS; fi
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user