X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=src%2Fsmart.c;fp=src%2Fsmart.c;h=285eb860e480d7c5944658e793ca9b0a25088768;hb=ec43e8a33bdcb116e75310c7bd9daae3bc912834;hp=52e78a1586770f0458407459ed82023b70091d52;hpb=d54dc98aff7fe748d83fc91b0fed685db990e3de;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));