projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
openvpn plugin: Remove one level of indentation in the read functions.
[collectd.git]
/
src
/
load.c
diff --git
a/src/load.c
b/src/load.c
index
b7372a1
..
575b4ca
100644
(file)
--- a/
src/load.c
+++ b/
src/load.c
@@
-19,6
+19,8
@@
* Florian octo Forster <octo at verplant.org>
**/
+#define _BSD_SOURCE
+
#include "collectd.h"
#include "common.h"
#include "plugin.h"
@@
-79,7
+81,7
@@
static int load_read (void)
char *fields[8];
int numfields;
-
+
if ((loadavg = fopen ("/proc/loadavg", "r")) == NULL)
{
char errbuf[1024];