yet-another-bench-script icon indicating copy to clipboard operation
yet-another-bench-script copied to clipboard

lscpu not present on alpine linux

Open FireMasterK opened this issue 1 year ago • 1 comments
trafficstars

ARM compatibility is considered *experimental*

Basic System Information:
---------------------------------
Uptime     : 0 days, 0 hours, 9 minutes
bash: line 218: lscpu: command not found
Processor  : 
bash: line 224: lscpu: command not found
bash: line 225: lscpu: command not found

Maybe /proc/cpuinfo could be read instead? :thinking:

FireMasterK avatar Jan 03 '24 23:01 FireMasterK

Thanks for the bug report! Looks like I need to do some better detection and error handling if lscpu isn't found. First thought is to determine if lscpu is a valid command on the host, if not, then fallback using /proc/cpuinfo if that exists, and if that isn't found either then gracefully handle the error.

masonr avatar Jan 04 '24 01:01 masonr

Fixed in f05bd39

masonr avatar Mar 04 '24 06:03 masonr