X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fusers.c;h=4041a1c8842ad872c19756c74d763c4daa35caa6;hb=5ad4d81af38cc11bdaaf87270bce2d8f90494fd5;hp=e2b741c9393f96b44ec8aa17b5132b249e22b8b8;hpb=89ef5df52d495315cd26b8e3467153b93b2c2742;p=collectd.git diff --git a/src/users.c b/src/users.c index e2b741c9..4041a1c8 100644 --- a/src/users.c +++ b/src/users.c @@ -43,7 +43,7 @@ static char *rrd_file = "users.rrd"; static char *ds_def[] = { - "DS:users:GAUGE:25:0:65535", + "DS:users:GAUGE:"COLLECTD_HEARTBEAT":0:65535", NULL }; static int ds_num = 1; @@ -60,6 +60,7 @@ static void users_write (char *host, char *inst, char *val) return; } /* static void users_write(char *host, char *inst, char *val) */ +#if USERS_HAVE_READ /* I don't like this temporary macro definition - well it's used everywhere else in the collectd-sources, so I will just stick with it... */ #define BUFSIZE 256 @@ -78,7 +79,6 @@ static void users_submit (unsigned int users) } /* static void users_submit(unsigned int users) */ #undef BUFSIZE -#if USERS_HAVE_READ static void users_read (void) { #if HAVE_GETUTXENT