summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2380e87)
raw | patch | inline | side by side (parent: 2380e87)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Mon, 22 Mar 2010 17:42:09 +0000 (18:42 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Mon, 22 Mar 2010 17:42:09 +0000 (18:42 +0100) |
src/openvpn.c | patch | blob | history |
diff --git a/src/openvpn.c b/src/openvpn.c
index c3d5916ea849ab84c0b138212ec66d2c0c5e879f..f3f16ff6ea158755b54c4de93a6565645e30ce7a 100644 (file)
--- a/src/openvpn.c
+++ b/src/openvpn.c
"StatusFile",
"Compression",
"ImprovedNamingSchema",
- "AggregateUsers",
- "OnlyAggregateUsers"
+ "AggregateUsers",
+ "OnlyAggregateUsers"
};
static int config_keys_num = STATIC_ARRAY_SIZE (config_keys);
continue;
if (number_connectedusers)
- /* If so, sum all users, ignore the individuals*/
+ /* If so, sum all users, ignore the individuals*/
{
- sum_users += 1;
+ sum_users += 1;
}
- if (number_connectedusers_only==0)
+ if (number_connectedusers_only==0)
{
if (new_naming_schema)
{
if (number_connectedusers)
{
- numusers_submit(name, name, sum_users);
- read = 1;
+ numusers_submit(name, name, sum_users);
+ read = 1;
}
return (read);
continue;
if (number_connectedusers)
- /* If so, sum all users, ignore the individuals*/
+ /* If so, sum all users, ignore the individuals*/
{
- sum_users += 1;
+ sum_users += 1;
}
- if (number_connectedusers_only==0)
+ if (number_connectedusers_only==0)
{
if (new_naming_schema)
{
continue;
if (number_connectedusers)
- /* If so, sum all users, ignore the individuals*/
+ /* If so, sum all users, ignore the individuals*/
{
- sum_users += 1;
+ sum_users += 1;
}
- if (number_connectedusers_only==0)
+ if (number_connectedusers_only==0)
{
if (new_naming_schema)
{
}
}
- read = 1;
+ read = 1;
}
}
if (number_connectedusers)
{
- numusers_submit(name, name, sum_users);
- read = 1;
+ numusers_submit(name, name, sum_users);
+ read = 1;
}
return (read);
{
char errbuf[1024];
WARNING ("openvpn plugin: fopen(%s) failed: %s", vpn_list[i]->file,
- sstrerror (errno, errbuf, sizeof (errbuf)));
+ sstrerror (errno, errbuf, sizeof (errbuf)));
continue;
}
if (status_version == 0)
{
WARNING ("openvpn plugin: unable to detect status version, \
- discarding status file \"%s\".", value);
+ discarding status file \"%s\".", value);
return (1);
}
{
char errbuf[1024];
WARNING ("openvpn plugin: sstrdup failed: %s",
- sstrerror (errno, errbuf, sizeof (errbuf)));
+ sstrerror (errno, errbuf, sizeof (errbuf)));
return (1);
}
{
char errbuf[1024];
ERROR ("openvpn plugin: malloc failed: %s",
- sstrerror (errno, errbuf, sizeof (errbuf)));
+ sstrerror (errno, errbuf, sizeof (errbuf)));
sfree (temp->file);
sfree (temp);
if (IS_TRUE(value))
{
DEBUG ("openvpn plugin: Summing up all users");
- number_connectedusers = 1;
+ number_connectedusers = 1;
}
else
{
- number_connectedusers = 0;
+ number_connectedusers = 0;
}
} /* if (strcasecmp("AggregateUsers", key) == 0) */
else if (strcasecmp("OnlyAggregateUsers", key) == 0)
if (IS_TRUE(value))
{
DEBUG ("openvpn plugin: Summing up all users");
- number_connectedusers_only = 1;
- number_connectedusers = 1;
+ number_connectedusers_only = 1;
+ number_connectedusers = 1;
}
else
{
- number_connectedusers_only = 0;
+ number_connectedusers_only = 0;
}
} /* if (strcasecmp("OnlyAggregateUsers", key) == 0) */
else