X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fapcups.c;h=456491758122a6ece7365a7eafc1b176cf127367;hb=6d86a97190a193863aadc252f20f6b9dba61c263;hp=227c703c558fef41b8b338079c27321b281f5f48;hpb=654783aed1fab02766a9cc036e859799e01f6f9e;p=collectd.git diff --git a/src/apcups.c b/src/apcups.c index 227c703c..45649175 100644 --- a/src/apcups.c +++ b/src/apcups.c @@ -24,13 +24,6 @@ * Anthony Gialluca **/ -/* - * FIXME: Don't know why but without this here atof() was not returning - * correct values for me. This is behavior that I don't understand and - * should be examined in closer detail. - */ -#include - #include "collectd.h" #include "common.h" /* rrd_update_file */ #include "plugin.h" /* plugin_register, plugin_submit */ @@ -371,7 +364,6 @@ static void apc_submit_generic (char *type, char *type_inst, double value) vl.values = values; vl.values_len = 1; - vl.time = time (NULL); sstrncpy (vl.host, hostname_g, sizeof (vl.host)); sstrncpy (vl.plugin, "apcups", sizeof (vl.plugin)); sstrncpy (vl.plugin_instance, "", sizeof (vl.plugin_instance));