summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 62c921d)
raw | patch | inline | side by side (parent: 62c921d)
author | octo <octo> | |
Sat, 28 Jan 2006 08:33:32 +0000 (08:33 +0000) | ||
committer | octo <octo> | |
Sat, 28 Jan 2006 08:33:32 +0000 (08:33 +0000) |
src/collectd.pod | patch | blob | history | |
src/cpufreq.c | patch | blob | history |
diff --git a/src/collectd.pod b/src/collectd.pod
index de944b49ef522b9c32d6456edf10b82d310c8ec6..09aa5906256559719fb8c446fde15cd6bc70fc5f 100644 (file)
--- a/src/collectd.pod
+++ b/src/collectd.pod
=head2 cpufreq
-This module reads F</sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq> (for
+This module reads F</sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq> (for
the first CPU installed) to get the current CPU frequency. If this file does
not exist make sure B<cpufreqd> (L<http://cpufreqd.sourceforge.net/>) or a
similar tool is installed.
diff --git a/src/cpufreq.c b/src/cpufreq.c
index 50bd771f0ddcba686e8b24512045f640e434baff..22877b4d173107209970e1e7f9026669acdb4cb0 100644 (file)
--- a/src/cpufreq.c
+++ b/src/cpufreq.c
while (1)
{
- status = snprintf (filename, BUFSIZE, "/sys/devices/system/cpu/cpu%d/cpufreq/cpuinfo_cur_freq", num_cpu);
+ status = snprintf (filename, BUFSIZE, "/sys/devices/system/cpu/cpu%d/cpufreq/scaling_cur_freq", num_cpu);
if (status < 1 || status >= BUFSIZE)
break;