You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The below snippet will always show 0.0 for cpu_percent.
version: 5.2.2
OS: Ubuntu 14.04 LTS
I am running the Stress application and top shows the process at 100.00%
for proc in psutil.process_iter():
with proc.oneshot():
ct = proc.cpu_times()
cp = proc.cpu_percent()
print proc.name()
if "stress" in proc.name():
print "CPU: " + str(proc.cpu_percent())
The text was updated successfully, but these errors were encountered:
The below snippet will always show 0.0 for cpu_percent.
version: 5.2.2
OS: Ubuntu 14.04 LTS
I am running the
Stress
application andtop
shows the process at 100.00%The text was updated successfully, but these errors were encountered: