Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. GOV=`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor`
  4. MIN=`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq`
  5. MAX=`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq`
  6.  
  7. echo "$GOV $MIN $MAX" | awk '{ printf "Governor: %s\nMin Freq: %4dMhz\nMax Fre$
  8.  
  9. while [ true ]; do
  10. C=`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq`
  11. T=`cat /sys/class/thermal/thermal_zone0/temp`
  12. echo "`date +%H:%M:%S` $C $T" | awk '{ printf "%s: %4dMhz, %-.2fC\n",$1, $2$
  13. sleep 2
  14. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement