summaryrefslogtreecommitdiff
path: root/munin/munin-cpufreq
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2006-07-22 11:12:48 +0000
committerweasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede>2006-07-22 11:12:48 +0000
commitad20ab91c4a9f4c82ff7eb0daa6423bd0f8d2385 (patch)
tree809d789e0463d0b83f0bba4191023f09b9b19de1 /munin/munin-cpufreq
parent77a1cde5eed6c61a35cc0c8aabddea5b77e45d8e (diff)
Use cpuinfo_cur_freq instead if scaling_cur_freq
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@161 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
Diffstat (limited to 'munin/munin-cpufreq')
-rwxr-xr-xmunin/munin-cpufreq2
1 files changed, 1 insertions, 1 deletions
diff --git a/munin/munin-cpufreq b/munin/munin-cpufreq
index bd6269b..dd40663 100755
--- a/munin/munin-cpufreq
+++ b/munin/munin-cpufreq
@@ -55,7 +55,7 @@ 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/scaling_cur_freq").to_i
+ value = IO.read("/sys/devices/system/cpu/cpu#{m['cpunum']}/cpufreq/cpuinfo_cur_freq").to_i
puts "#{m['fieldname']}.value #{value}"
end
end