X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fsmart.c;h=285eb860e480d7c5944658e793ca9b0a25088768;hb=8c5927c52f4eefebaad3a6ecadc253ee9007ebb5;hp=52e78a1586770f0458407459ed82023b70091d52;hpb=f7649ae4a3270efe73f55bd00ca7fb89f269b8ec;p=collectd.git diff --git a/src/smart.c b/src/smart.c index 52e78a15..285eb860 100644 --- a/src/smart.c +++ b/src/smart.c @@ -90,7 +90,6 @@ static void smart_submit (const char *dev, const char *type, vl.values = &(value_t) { .gauge = value }; vl.values_len = 1; - sstrncpy (vl.host, hostname_g, sizeof (vl.host)); sstrncpy (vl.plugin, "smart", sizeof (vl.plugin)); sstrncpy (vl.plugin_instance, dev, sizeof (vl.plugin_instance)); sstrncpy (vl.type, type, sizeof (vl.type)); @@ -117,7 +116,6 @@ static void smart_handle_disk_attribute(SkDisk *d, const SkSmartAttributeParsedD vl.values = values; vl.values_len = STATIC_ARRAY_SIZE (values); - sstrncpy (vl.host, hostname_g, sizeof (vl.host)); sstrncpy (vl.plugin, "smart", sizeof (vl.plugin)); sstrncpy (vl.plugin_instance, dev, sizeof (vl.plugin_instance)); sstrncpy (vl.type, "smart_attribute", sizeof (vl.type));