diff --git a/tuned/plugins/plugin_scheduler.py b/tuned/plugins/plugin_scheduler.py index babe108..890c2b3 100644 --- a/tuned/plugins/plugin_scheduler.py +++ b/tuned/plugins/plugin_scheduler.py @@ -284,7 +284,7 @@ class SchedulerPlugin(base.Plugin): for pid, vals in list(instance._scheduler_original.items()): # if command line for the pid didn't change, it's very probably the same process try: - if ps[pid] == vals[0]: + if ps[int(pid)] == vals[0]: self._set_rt(pid, self._sched2param(vals[1]), vals[2]) self._set_affinity(pid, vals[3]) except KeyError as e: