From 4a73aa73423034fecb4c8d2e82e183427914ed74 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Mon, 22 Mar 2010 19:22:02 +0100 Subject: [PATCH] openvpn plugin: Fix a copy'n'paste error in the "new naming schema". --- src/openvpn.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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" */ } -- 2.30.2