Didn't need more than a 1-liner to explain that--cool! Anyway, possible? Plugin needed?
Thanks!
CPU_Pct=str(round(float(os.popen('''grep 'cpu ' /proc/stat | awk '{usage=($2+$4)*100/($2+$4+$5)} END {print usage }' ''').readline()),2))
indigo.server.log("CPU Usage = " + CPU_Pct)
Users browsing this forum: No registered users and 5 guests