diff --git a/src/users.c b/src/users.c
index e2b741c9393f96b44ec8aa17b5132b249e22b8b8..08fc4fd74d349853be9510ebcc75a689d5623e74 100644 (file)
--- a/src/users.c
+++ b/src/users.c
/**
* collectd - src/users.c
/**
* collectd - src/users.c
- * Copyright (C) 2005 Sebastian Harl
+ * Copyright (C) 2005,2006 Sebastian Harl
*
* 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
static char *rrd_file = "users.rrd";
static char *ds_def[] =
{
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;
NULL
};
static int ds_num = 1;
return;
} /* 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
/* 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
} /* static void users_submit(unsigned int users) */
#undef BUFSIZE
} /* static void users_submit(unsigned int users) */
#undef BUFSIZE
-#if USERS_HAVE_READ
static void users_read (void)
{
#if HAVE_GETUTXENT
static void users_read (void)
{
#if HAVE_GETUTXENT