Code

`DataDir' and `LogFile' were not valid in `Client' mode. This fixes it..
[collectd.git] / src / load.c
index 8d0963bcf1285395d4661dae08d77508e4f35229..913eb538c1d3623022a69caf70d8ff5bf4350a3b 100644 (file)
@@ -65,6 +65,7 @@ static void load_write (char *host, char *inst, char *val)
        rrd_update_file (host, load_file, val, ds_def, ds_num);
 }
 
+#if LOAD_HAVE_READ
 #define BUFSIZE 256
 static void load_submit (double snum, double mnum, double lnum)
 {
@@ -78,7 +79,6 @@ static void load_submit (double snum, double mnum, double lnum)
 }
 #undef BUFSIZE
 
-#if LOAD_HAVE_READ
 static void load_read (void)
 {
 #if defined(HAVE_GETLOADAVG)