From 7e2d3dc28d9c22e3c63eb17b0fef2c22d4a486ef Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sat, 22 Jul 2006 11:49:43 +0000 Subject: Avoid cpuinfo_cur_freq and read scaling_cur_freq git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@165 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede --- munin/munin-cpufreq | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3