Skip to content

Commit

Permalink
Merge pull request #3271 from vietlubu/fix_sysinfogen_get_cpu_cores
Browse files Browse the repository at this point in the history
Fix sysinfogen.sh get incorrect synctax SYSINFO_CPUCORES
  • Loading branch information
MishimaHaruna committed Mar 30, 2024
2 parents 2494c9a + 8edd893 commit 4f6fcb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sysinfogen.sh
Expand Up @@ -190,7 +190,7 @@ case $HERC_PLATFORM in
HWDATA="$( system_profiler SPHardwareDataType )"
HWDATA_CPU="$( echo "$HWDATA" | grep "Processor Name:" | cut -d: -f2- )"
HWDATA_CPUSPEED="$( cleanstring "$( echo "$HWDATA" | grep "Processor Speed:" | cut -d: -f2- )" )"
HERC_CORES="$( echo "$HWDATA" | grep "Total Number of Cores:" | cut -d: -f2- )"
HERC_CORES="$( echo "$HWDATA" | grep "Total Number of Cores:" | cut -d: -f2- | sed -E 's/ *([0-9]+).*/\1/')"
HERC_CPU="${HWDATA_CPU} (${HWDATA_CPUSPEED})"
fi
;;
Expand Down

0 comments on commit 4f6fcb5

Please sign in to comment.