]> git.itanic.dy.fi Git - rrdd/commitdiff
database.h: Clean up default path names
authorTimo Kokkonen <timo.t.kokkonen@iki.fi>
Wed, 22 Feb 2012 16:05:43 +0000 (18:05 +0200)
committerTimo Kokkonen <timo.t.kokkonen@iki.fi>
Wed, 22 Feb 2012 16:05:43 +0000 (18:05 +0200)
Replace the default SYSINFO_PATH with something more generic. Also,
apply the path to whereever it applies.

Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
database.h

index 522fb985ccda1bf2caaf9f41d3bd270e7a55f71c..fdf7c398ed71a80e8d1d9a944b239ac737d8e04e 100644 (file)
@@ -8,7 +8,7 @@
 const char blank[] = "COMMENT:       ";
 #define numfmt " % 8.2lf "
 
-#define SYSINFO_PATH           "/home/kaapeli/rrdd/sysinfo/"
+#define SYSINFO_PATH           "./"
 #define SYSINFO_RRD_PATH       SYSINFO_PATH "sysinfo.rrd"
 #define SYSINFO_IMAGES_PATH    SYSINFO_PATH "images/"
 
@@ -288,11 +288,11 @@ const char *systempoptions[] = {
                .text = (char **)&rrdname ## text,                      \
        };
 
-DEFINE_IMAGE(cpu,      "/home/kaapeli/rrdd/sysinfo/images/cpu", 720, 480, 1);
-DEFINE_IMAGE(mem,      "/home/kaapeli/rrdd/sysinfo/images/mem", 720, 480, 1);
-DEFINE_IMAGE(systemp,  "/home/kaapeli/rrdd/sysinfo/images/systemp", 720,480,1);
-DEFINE_IMAGE(eth0,     "/home/kaapeli/rrdd/sysinfo/images/eth0", 720, 200, 1);
-DEFINE_IMAGE(eth1,     "/home/kaapeli/rrdd/sysinfo/images/eth1", 720, 200, 1);
+DEFINE_IMAGE(cpu,      SYSINFO_PATH "/images/cpu", 720, 480, 1);
+DEFINE_IMAGE(mem,      SYSINFO_PATH "/images/mem", 720, 480, 1);
+DEFINE_IMAGE(systemp,  SYSINFO_PATH "/images/systemp", 720,480,1);
+DEFINE_IMAGE(eth0,     SYSINFO_PATH "/images/eth0", 720, 200, 1);
+DEFINE_IMAGE(eth1,     SYSINFO_PATH "/images/eth1", 720, 200, 1);
 
 static struct rrd_image *cpu_mem_images[] = {
        &cpudaily,