X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fopenvpn.c;h=2aca4145cdae3d36c2e1ead682b9ab0343a418b6;hb=e7a75874a24c1bf19931d5b4b423a0daa7f9be6b;hp=8c0f82db12d30a2e84c43fcfc6217d774e3bb931;hpb=7f7795d0c615ad4998c13651d5f1f01336f808f1;p=collectd.git diff --git a/src/openvpn.c b/src/openvpn.c index 8c0f82db..2aca4145 100644 --- a/src/openvpn.c +++ b/src/openvpn.c @@ -299,15 +299,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" */ }