X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Flpar.c;h=69a56e1cdea3e9508c0b3bc14ab5aace5a622deb;hb=19a7c076959e16df16be966d4c3aa563431ef038;hp=0e32c834506f6aa2cf85b48643e3c5f10ba5c4ae;hpb=51bc7c4a5523f2b03c24e32064b28c7c8426534d;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));