projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into processes
[collectd.git]
/
src
/
cpufreq.c
diff --git
a/src/cpufreq.c
b/src/cpufreq.c
index
22877b4
..
ba0149a
100644
(file)
--- a/
src/cpufreq.c
+++ b/
src/cpufreq.c
@@
-1,6
+1,6
@@
/**
* collectd - src/cpufreq.c
/**
* 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
*
* 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[] =
{
static char *ds_def[] =
{
- "DS:value:GAUGE:
25
:0:U",
+ "DS:value:GAUGE:
"COLLECTD_HEARTBEAT"
:0:U",
NULL
};
static int ds_num = 1;
NULL
};
static int ds_num = 1;
@@
-123,6
+123,7
@@
static void cpufreq_read (void)
if (fgets (buffer, 16, fp) == NULL)
{
syslog (LOG_WARNING, "cpufreq: fgets: %s", strerror (errno));
if (fgets (buffer, 16, fp) == NULL)
{
syslog (LOG_WARNING, "cpufreq: fgets: %s", strerror (errno));
+ fclose (fp);
return;
}
return;
}