projects
/
l2tpns.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
34fb6bc
)
fix "clear counters"
author
bodea
<bodea>
Mon, 10 Jan 2005 08:00:43 +0000
(08:00 +0000)
committer
bodea
<bodea>
Mon, 10 Jan 2005 08:00:43 +0000
(08:00 +0000)
Changes
patch
|
blob
|
history
cli.c
patch
|
blob
|
history
diff --git
a/Changes
b/Changes
index
d7d3f91
..
a6c771c
100644
(file)
--- a/
Changes
+++ b/
Changes
@@
-11,6
+11,7
@@
- Add enum for RADIUS codes.
- Make "call_" prefix implict in CSTAT() macro.
- Fix some format string problems.
- Add enum for RADIUS codes.
- Make "call_" prefix implict in CSTAT() macro.
- Fix some format string problems.
+- Fix "clear counters".
* Fri Dec 17 2004 Brendan O'Dea <bod@optusnet.com.au> 2.0.13
- Better cluster master collision resolution: keep a counter of state
* Fri Dec 17 2004 Brendan O'Dea <bod@optusnet.com.au> 2.0.13
- Better cluster master collision resolution: keep a counter of state
diff --git
a/cli.c
b/cli.c
index
15d901e
..
a1a561a
100644
(file)
--- a/
cli.c
+++ b/
cli.c
@@
-2,7
+2,7
@@
// vim: sw=8 ts=8
char const *cvs_name = "$Name: $";
// vim: sw=8 ts=8
char const *cvs_name = "$Name: $";
-char const *cvs_id_cli = "$Id: cli.c,v 1.4
6 2005/01/10 07:17:37
bodea Exp $";
+char const *cvs_id_cli = "$Id: cli.c,v 1.4
7 2005/01/10 08:00:44
bodea Exp $";
#include <stdio.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdarg.h>
@@
-1118,8
+1118,10
@@
static int cmd_clear_counters(struct cli_def *cli, char *command, char **argv, i
if (CLI_HELP_REQUESTED)
return CLI_HELP_NO_ARGS;
if (CLI_HELP_REQUESTED)
return CLI_HELP_NO_ARGS;
-
cli_print(cli, "Counters cleared"
);
+
memset(_statistics, 0, sizeof(struct Tstats)
);
SET_STAT(last_reset, time(NULL));
SET_STAT(last_reset, time(NULL));
+
+ cli_print(cli, "Counters cleared");
return CLI_OK;
}
return CLI_OK;
}