summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d55a2b0)
raw | patch | inline | side by side (parent: d55a2b0)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Mon, 22 Mar 2010 18:22:02 +0000 (19:22 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Mon, 22 Mar 2010 18:26:55 +0000 (19:26 +0100) |
src/openvpn.c | patch | blob | history |
diff --git a/src/openvpn.c b/src/openvpn.c
index 1ac50830ceea5fb8f7cc4bdc5c21f68a5781a104..9c717dd0a64a0f9511473c0c976f10c0f31bd639 100644 (file)
--- a/src/openvpn.c
+++ b/src/openvpn.c
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" */
}