Skip to content

Commit

Permalink
stats: Reset nearly all global mail stats
Browse files Browse the repository at this point in the history
We leave num_connected_sessions alone.
  • Loading branch information
cmouse committed Aug 29, 2016
1 parent f4203c9 commit 7bde80d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/stats/client-reset.c
Expand Up @@ -12,6 +12,10 @@ int client_stats_reset(struct client *client, const char *const *args ATTR_UNUSE
{
struct mail_global *g = &mail_global_stats;
stats_reset(g->stats);
g->num_logins = 0;
g->num_cmds = 0;
g->reset_timestamp = ioloop_time;
memset(&(g->last_update), 0, sizeof(g->last_update));
o_stream_nsend_str(client->output, "OK\n");
return 0;
}

0 comments on commit 7bde80d

Please sign in to comment.