count total bogomips

This commit is contained in:
lachtan
2021-10-19 21:10:04 +02:00
parent 83794c6f00
commit def2b5c25f

4
bin/bogo-total Executable file
View File

@@ -0,0 +1,4 @@
#!/usr/bin/env bash
cat /proc/cpuinfo | awk 'BEGIN {IGNORECASE=1;} /bogomips/ {total += $3} END { printf "%0.0f\n", total }'