1
0
Fork 0

cpu plugin: fixed cpupower workaround

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
This commit is contained in:
Jaroslav Škarvada 2013-03-19 16:10:23 +01:00
parent 7088da1202
commit f535dd52d9

View file

@ -134,7 +134,7 @@ class CPULatencyPlugin(base.Plugin):
governor = l[2]
break
else:
data = tuned.utils.commands.read_file("/sys/devices/system/cpu/%s/cpufreq/scaling_governor" % device, str(governor))
data = tuned.utils.commands.read_file("/sys/devices/system/cpu/%s/cpufreq/scaling_governor" % device)
if len(data) > 0:
governor = data