Skip to content

Commit

Permalink
d/landscape-sysinfo.wrapper fix case on CORES variable (#235)
Browse files Browse the repository at this point in the history
  • Loading branch information
Perfect5th committed Apr 9, 2024
1 parent b2d8cc9 commit 7e0b21f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion debian/landscape-sysinfo.wrapper
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ else
export LANG
CORES=$(grep -c ^processor /proc/cpuinfo 2>/dev/null)
[ "$CORES" -eq "0" ] && CORES=1
THRESHOLD="${cores:-1}.0"
THRESHOLD="${CORES:-1}.0"

if [ $(echo "`cut -f1 -d ' ' /proc/loadavg` < $THRESHOLD" | bc) -eq 1 ]; then
SYSINFO=$(printf "\n System information as of %s\n\n%s\n" \
Expand Down

0 comments on commit 7e0b21f

Please sign in to comment.