X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fcpufreq.c;h=b26c35e161eb09d17c329ce8d22c1c498f76f3c8;hb=b1aae570f75a93f475814aa0753ecdb15f967767;hp=50bd771f0ddcba686e8b24512045f640e434baff;hpb=912774f797cddcf152ad2ed13af4f7e43ac2da50;p=collectd.git diff --git a/src/cpufreq.c b/src/cpufreq.c index 50bd771f..b26c35e1 100644 --- a/src/cpufreq.c +++ b/src/cpufreq.c @@ -1,6 +1,6 @@ /** * collectd - src/cpufreq.c - * Copyright (C) 2005 Peter Holik + * Copyright (C) 2005,2006 Peter Holik * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -36,7 +36,7 @@ static char *cpufreq_file = "cpufreq-%s.rrd"; static char *ds_def[] = { - "DS:value:GAUGE:25:0:U", + "DS:value:GAUGE:"COLLECTD_HEARTBEAT":0:U", NULL }; static int ds_num = 1; @@ -57,7 +57,7 @@ static void cpufreq_init (void) 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;