Right now, I m using psutil.nice()
function in for process in psutil.process_iter()
loop. If I try to campare priority like this:
if process.nice() != psutil.HIGH_PRIORITY_CLASS:
do something..
It does not work. So my question is: How to compare process priority in python using psutil? Thanks for all answers and have a noce evening :)
Aucun commentaire:
Enregistrer un commentaire