X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=src%2Fopenvpn.c;h=9c717dd0a64a0f9511473c0c976f10c0f31bd639;hb=07be522384e753b7921213a0dc96a50336c79a66;hp=1ac50830ceea5fb8f7cc4bdc5c21f68a5781a104;hpb=34f7eda9ad2cbd2cd5620c0a2d76d282e790b4de;p=collectd.git diff --git a/src/openvpn.c b/src/openvpn.c index 1ac50830..9c717dd0 100644 --- a/src/openvpn.c +++ b/src/openvpn.c @@ -263,15 +263,15 @@ static int multi1_read (char *name, FILE *fh) if (new_naming_schema) { - iostats_submit (fields[0], /* "Common Name" */ - NULL, /* unused when in multimode */ + iostats_submit (name, /* vpn instance */ + fields[0], /* "Common Name" */ atoll (fields[2]), /* "Bytes Received" */ atoll (fields[3])); /* "Bytes Sent" */ } else { - iostats_submit (name, /* vpn instance */ - fields[0], /* "Common Name" */ + iostats_submit (fields[0], /* "Common Name" */ + NULL, /* unused when in multimode */ atoll (fields[2]), /* "Bytes Received" */ atoll (fields[3])); /* "Bytes Sent" */ }