summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5d64da9)
raw | patch | inline | side by side (parent: 5d64da9)
author | Fabian Schuh <mail@xeroc.org> | |
Thu, 18 Mar 2010 10:03:54 +0000 (11:03 +0100) | ||
committer | Fabian Schuh <mail@xeroc.org> | |
Thu, 18 Mar 2010 10:03:54 +0000 (11:03 +0100) |
src/openvpn.c | patch | blob | history |
diff --git a/src/openvpn.c b/src/openvpn.c
index a274537680172db762ecfaaa5f32c86759cd55ae..03640bd744a1533ea56e46382f0d1fd8dd5d6ff1 100644 (file)
--- a/src/openvpn.c
+++ b/src/openvpn.c
static int store_compression = 1;
static int new_naming_schema = 0;
static int sumover_allusers = 0;
-static long long sum_rx = 0;
-static long long sum_tx = 0;
static const char *config_keys[] =
{
"StatusFile",
"Compression",
"ImprovedNamingSchema",
- "SumOverAllUsers"
+ "SumOverAllUsers"
};
static int config_keys_num = STATIC_ARRAY_SIZE (config_keys);
char buffer[1024];
char *fields[10];
int fields_num, read = 0, found_header = 0;
+ long long sum_rx = 0;
+ long long sum_tx = 0;
/* read the file until the "ROUTING TABLE" line is found (no more info after) */
while (fgets (buffer, sizeof (buffer), fh) != NULL)
char *fields[10];
const int max_fields = STATIC_ARRAY_SIZE (fields);
int fields_num, read = 0;
+ long long sum_rx = 0;
+ long long sum_tx = 0;
while (fgets (buffer, sizeof (buffer), fh) != NULL)
{
char *fields[15];
const int max_fields = STATIC_ARRAY_SIZE (fields);
int fields_num, read = 0;
+ long long sum_rx = 0;
+ long long sum_tx = 0;
while (fgets (buffer, sizeof (buffer), fh) != NULL)
{