Searched refs:new_stats (Results 1 - 4 of 4) sorted by relevance

/dovecot/src/plugins/imap-old-stats/
H A Dimap-stats-plugin.c59 struct stats *new_stats, *diff_stats; local
68 new_stats = stats_alloc(pool_datastack_create());
71 mail_user_stats_fill(cmd->client->user, new_stats);
72 if (!stats_diff(scmd->pre_stats, new_stats, diff_stats, &error))
/dovecot/src/old-stats/
H A Dmail-command.c104 struct stats *new_stats, *diff_stats; local
176 new_stats = stats_alloc(pool_datastack_create());
179 if (!stats_import(buf->data, buf->used, cmd->stats, new_stats, &error)) {
184 if (!stats_diff(cmd->stats, new_stats, diff_stats, &error)) {
H A Dmail-session.c267 struct stats *new_stats, *diff_stats; local
284 new_stats = stats_alloc(pool_datastack_create());
287 if (!stats_import(buf->data, buf->used, session->stats, new_stats, &error)) {
294 if (!stats_diff(session->stats, new_stats, diff_stats, &error)) {
/dovecot/src/plugins/old-stats/
H A Dstats-plugin.c73 struct stats *new_stats, *diff_stats; local
76 new_stats = stats_alloc(pool_datastack_create());
79 mail_user_stats_fill(user, new_stats);
80 /* we'll count new_stats-pre_io_stats and add the changes to
81 session_stats. the new_stats can't be directly copied to
85 if (!stats_diff(suser->pre_io_stats, new_stats, diff_stats, &error))
89 stats_copy(suser->pre_io_stats, new_stats);

Completed in 22 milliseconds