2021-03-04 13:50:20 +00:00
|
|
|
#!/bin/sh
|
2021-07-26 17:14:17 +00:00
|
|
|
MHz_AVG="$(echo "$(grep 'MHz' /proc/cpuinfo | awk '{Freq_Sum += $4};END {print Freq_Sum}') / $(grep 'processor' /proc/cpuinfo | sort -u | wc -l)" | bc)"
|
|
|
|
TEMP="$(sensors 2>/dev/null | grep 'Core 0' | awk '{print $3}' | cut -d '+' -f2)"
|
|
|
|
echo "$MHz_AVG MHz (CPU: $TEMP)"
|
|
|
|
sleep 1
|