How do you detect when the Pi is slowing down its clockspeed due to overheating?
I know I can find the "current" CPU speed by running:
sudo cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq
and I can see it fluctuate, but I don't know if it's changing because the CPU's getting too hot or it's just inactive.