Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix an error caused by system's /tmp being full when running checks in lbnl_hw.nhc #152

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions scripts/lbnl_hw.nhc
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function nhc_hw_cpu_gather_data() {
MHZ="${FIELD[3]}"
MHZ="${MHZ/%.*}"
fi
done <<< "${CPUDATA}"
done < <(echo "${CPUDATA}" )

if [[ $PROCESSOR -ge 0 && $HW_SOCKETS -eq 0 ]]; then
HW_SOCKETS=$((PROCESSOR+1))
Expand Down Expand Up @@ -158,7 +158,7 @@ function nhc_hw_mem_gather_data() {
elif [[ "${FIELD[0]}" = "SwapFree:" ]]; then
HW_SWAP_FREE=${FIELD[1]}
fi
done <<< "$MEMDATA"
done < <(echo "$MEMDATA" )

dbg "Found $HW_RAM_TOTAL kB RAM ($HW_RAM_FREE kB free)"
dbg "Found $HW_SWAP_TOTAL kB swap ($HW_SWAP_FREE kB free)"
Expand Down Expand Up @@ -236,7 +236,7 @@ function nhc_hw_kmod_gather_data() {

while read -a FIELD ; do
HW_MODULES+=( "${FIELD[0]}" )
done <<< "$MODDATA"
done < <(echo "$MODDATA" )

export HW_MODULES
dbg "Found kernel modules: ${HW_MODULES[*]}"
Expand Down Expand Up @@ -280,7 +280,7 @@ function nhc_hw_eth_gather_data() {
DEV=${FIELD[0]%%:*}
HW_ETH_DEV+=( "${DEV}" )
fi
done <<< "${DEVDATA}"
done < <(echo "${DEVDATA}" )
export HW_ETH_DEV
dbg "Found network devices: ${HW_ETH_DEV[*]}"
}
Expand Down