collectd.conf(5): Added a note about that trailing whitespace bug.
[collectd.git] / src / users.c
index 5fe1b71..973fda0 100644 (file)
@@ -1,6 +1,6 @@
 /**
  * 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
@@ -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;
@@ -74,7 +74,7 @@ static void users_submit (unsigned int users)
                return;
        }
 
-       plugin_submit(MODULE_NAME, NULL, buf);
+       plugin_submit(MODULE_NAME, "-", buf);
        return;
 } /* static void users_submit(unsigned int users) */
 #undef BUFSIZE