X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fsensors.c;h=fa461a2f6bffd7db8b3dca5dcca02a23e542dc53;hb=be99a844a40d7037a910d37a894988b807631a6e;hp=a0a4b65a2c5656de06910aac8c3f2d2dbb4fe8d7;hpb=5f9ec13b946733ff4e1edf2d8e3b7a22311dd894;p=collectd.git diff --git a/src/sensors.c b/src/sensors.c index a0a4b65a..fa461a2f 100644 --- a/src/sensors.c +++ b/src/sensors.c @@ -1,6 +1,7 @@ /** * collectd - src/sensors.c * Copyright (C) 2005-2008 Florian octo Forster + * Copyright (C) 2006 Luboš Staněk * * 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 @@ -189,14 +190,14 @@ static int sensors_snprintf_chip_name (char *buf, size_t buf_size, } else if (chip->bus == SENSORS_CHIP_NAME_BUS_DUMMY) { - ssnprintf (buf, buf_size, "%s-%s-%04x", + status = snprintf (buf, buf_size, "%s-%s-%04x", chip->prefix, chip->busname, chip->addr); } else { - ssnprintf (buf, buf_size, "%s-i2c-%d-%02x", + status = snprintf (buf, buf_size, "%s-i2c-%d-%02x", chip->prefix, chip->bus, chip->addr); @@ -496,7 +497,6 @@ static void sensors_submit (const char *plugin_instance, vl.values = values; vl.values_len = 1; - vl.time = time (NULL); sstrncpy (vl.host, hostname_g, sizeof (vl.host)); sstrncpy (vl.plugin, "sensors", sizeof (vl.plugin));