summaryrefslogtreecommitdiff
path: root/munin/munin-cpufreq
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2006-07-22 11:49:43 +0000
committerweasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede>2006-07-22 11:49:43 +0000
commit7e2d3dc28d9c22e3c63eb17b0fef2c22d4a486ef (patch)
tree9f7891945a2c4a4045c16aaad1d55d3fe2b86f9d /munin/munin-cpufreq
parentb9e441dd54b16673f7a2e0a9d9547cbe94525e33 (diff)
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
Diffstat (limited to 'munin/munin-cpufreq')
-rwxr-xr-xmunin/munin-cpufreq4
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