X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Flpar.c;h=69a56e1cdea3e9508c0b3bc14ab5aace5a622deb;hb=b614c13af47dab0544085f0e143fc0e190c979aa;hp=0e32c834506f6aa2cf85b48643e3c5f10ba5c4ae;hpb=e14e8b7f5c5bf9d0fe5cc632c6383f304d4ac2ad;p=collectd.git diff --git a/src/lpar.c b/src/lpar.c index 0e32c834..69a56e1c 100644 --- a/src/lpar.c +++ b/src/lpar.c @@ -123,10 +123,6 @@ static void lpar_submit (const char *type_instance, double value) sstrncpy (vl.host, serial, sizeof (vl.host)); sstrncpy (vl.plugin_instance, hostname_g, sizeof (vl.plugin)); } - else - { - sstrncpy (vl.host, hostname_g, sizeof (vl.host)); - } sstrncpy (vl.plugin, "lpar", sizeof (vl.plugin)); sstrncpy (vl.type, "vcpu", sizeof (vl.type)); sstrncpy (vl.type_instance, type_instance, sizeof (vl.type_instance));