Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- GOV=`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor`
- MIN=`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq`
- MAX=`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq`
- echo "$GOV $MIN $MAX" | awk '{ printf "Governor: %s\nMin Freq: %4dMhz\nMax Fre$
- while [ true ]; do
- C=`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq`
- T=`cat /sys/class/thermal/thermal_zone0/temp`
- echo "`date +%H:%M:%S` $C $T" | awk '{ printf "%s: %4dMhz, %-.2fC\n",$1, $2$
- sleep 2
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement