diff options
Diffstat (limited to 'munin')
-rwxr-xr-x | munin/munin-cpufreq | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/munin/munin-cpufreq b/munin/munin-cpufreq index d8126eb..b344486 100755 --- a/munin/munin-cpufreq +++ b/munin/munin-cpufreq @@ -58,7 +58,9 @@ def report sleep(5) # we are interested how it does without us poking it, # so maybe sleeping a bit will help m.each do |m| - value = IO.read("/sys/devices/system/cpu/cpu#{m['cpunum']}/cpufreq/cpuinfo_cur_freq").to_i + # value = IO.read("/sys/devices/system/cpu/cpu#{m['cpunum']}/cpufreq/cpuinfo_cur_freq").to_i + # cpuinfo_cur_freq is not readable + value = IO.read("/sys/devices/system/cpu/cpu#{m['cpunum']}/cpufreq/scaling_cur_freq").to_i puts "#{m['fieldname']}.value #{value}" end end |