Searched defs:diff (Results 1 - 25 of 53) sorted by relevance

123

/dovecot/src/lib-old-stats/
H A Dstats.h16 bool (*diff)(const struct stats *stats1, const struct stats *stats2, member in struct:stats_vfuncs
/dovecot/src/lib/
H A Dutc-mktime.c8 int diff; local
10 if ((diff = tm1->tm_year - tm2->tm_year) != 0)
11 return diff;
12 if ((diff = tm1->tm_mon - tm2->tm_mon) != 0)
13 return diff;
14 if ((diff = tm1->tm_mday - tm2->tm_mday) != 0)
15 return diff;
16 if ((diff = tm1->tm_hour - tm2->tm_hour) != 0)
17 return diff;
18 if ((diff
[all...]
H A Distream-timeout.c43 int diff; local
54 diff = timeval_diff_msecs(&ioloop_timeval, &tstream->last_read_timestamp);
55 if (diff < (int)tstream->timeout_msecs) {
57 if (diff < 0)
58 diff = 0;
60 tstream->timeout_msecs - diff,
64 over_msecs = diff - tstream->timeout_msecs;
68 diff/1000, diff%1000,
102 int diff local
[all...]
H A Dfile-cache.c60 uoff_t diff; local
65 diff = size % page_size;
66 if (diff != 0)
67 size += page_size - diff;
H A Dseq-range-array.c495 unsigned int i, count, diff; local
505 diff = range[i].seq2 - range[i].seq1;
506 if (n <= iter->prev_n + diff) {
512 iter->prev_n += diff + 1;
H A Dconnection.c452 int diff = timeval_diff_msecs(&ioloop_timeval, &conn->last_input_tv); local
454 diff/1000, diff%1000);
456 int diff = timeval_diff_msecs(&ioloop_timeval, &conn->connect_finished); local
459 diff/1000, diff%1000);
461 int diff = timeval_diff_msecs(&ioloop_timeval, &conn->connect_started); local
463 diff/1000, diff%1000);
/dovecot/src/lib-dict/
H A Ddict-transaction-memory.c49 const char *key, long long diff)
58 change->value.diff = diff;
48 dict_transaction_memory_atomic_inc(struct dict_transaction_context *_ctx, const char *key, long long diff) argument
H A Ddict-transaction-memory.h17 long long diff; member in union:dict_transaction_memory_change::__anon84
36 const char *key, long long diff);
/dovecot/src/old-stats/
H A Dmail-domain.c108 unsigned int diff; local
117 diff = ioloop_time - mail_domains_head->last_update.tv_sec;
118 if (diff < stats_settings->domain_min_time)
H A Dmail-ip.c103 unsigned int diff; local
112 diff = ioloop_time - mail_ips_head->last_update.tv_sec;
113 if (diff < stats_settings->ip_min_time)
H A Dmail-user.c124 /* <user> <service> <diff stats> */
152 unsigned int diff; local
161 diff = ioloop_time - mail_users_head->last_update.tv_sec;
162 if (diff < stats_settings->user_min_time)
H A Dmail-command.c207 unsigned int diff; local
228 diff = ioloop_time - stable_mail_commands_head->last_update.tv_sec;
229 if (diff < stats_settings->command_min_time)
H A Dmail-session.c306 unsigned int diff; local
317 diff = ioloop_time - mail_sessions_head->last_update.tv_sec;
318 if (diff < stats_settings->session_min_time)
/dovecot/src/director/
H A Dnotify-connection.c34 int diff; local
40 diff = ioloop_time - user->timestamp;
41 if (diff >= (int)dir->set->director_user_expire) {
43 username, diff);
/dovecot/src/doveadm/
H A Ddoveadm-dict.c183 int64_t diff; local
189 if (!doveadm_cmd_param_int64(cctx, "difference", &diff)) {
198 dict_atomic_inc(trans, key, diff);
275 .usage = "[-u <user>] <dict uri> <key> <diff>",
H A Ddoveadm-replicator.c109 int diff = ioloop_time - t; local
113 return t_strdup_printf("%02d:%02d:%02d", diff/3600,
114 (diff/60)%60, diff%60);
H A Ddoveadm-print-table.c55 size_t len, max_length, orig_length, diff; local
88 diff = headers[i].length - headers[i].min_length;
89 if (max_length - diff <= ctx->columns) {
91 diff = max_length - ctx->columns;
92 headers[i].length -= diff;
93 max_length -= diff;
96 if (diff > 0) {
98 headers[i].length -= diff == 1 ? 1 : diff/2;
/dovecot/src/lib-storage/index/mbox/
H A Dmbox-sync-update.c32 ssize_t diff = (ssize_t)need - (ssize_t)have; local
37 if (diff == 0) {
42 /* FIXME: if (diff < ctx->space && pos < ctx->offset) then
50 ctx->hdr_pos[i] += diff;
59 ctx->mail.offset += diff;
63 if (diff < 0)
64 str_delete(ctx->header, pos, -diff);
67 buffer_copy(ctx->header, pos + diff,
/dovecot/src/plugins/fts/
H A Dfts-indexer.c233 int ret, diff; local
242 diff = ioloop_time - ctx->search_start_time.tv_sec;
243 if (diff > (int)ctx->timeout_secs) {
/dovecot/src/anvil/
H A Dpenalty.c165 unsigned int diff; local
175 diff = rec_last_update - expire_time;
176 penalty->to = timeout_add(diff * 1000,
189 time_t diff; local
216 diff = ioloop_time - rec->last_penalty;
217 if (diff >= (1 << LAST_UPDATE_BITS)) {
221 rec->last_update = diff;
/dovecot/src/imap/
H A Dcmd-select.c36 unsigned int i, uid_count, diff, n = 0; local
52 diff = uid_range[i].seq2 - uid_range[i].seq1;
53 if (diff > 0) {
54 n += diff - 1;
H A Dimap-search.c231 uint32_t n, diff; local
245 diff = range[i].seq2 - range[i].seq1;
246 if (n + diff >= ctx->partial1) {
251 n += diff + 1;
259 diff = range[i].seq2 - range[i].seq1;
260 if (n + diff >= ctx->partial2) {
265 n += diff + 1;
284 float diff, imap_score; local
293 diff = ctx->max_relevancy - ctx->min_relevancy;
294 if (diff
[all...]
/dovecot/src/lib-dns/
H A Ddns-lookup.c129 int diff; local
134 diff = timeval_diff_msecs(&now, &lookup->start_time);
135 if (diff > 0)
136 lookup->result.msecs = diff;
/dovecot/src/lib-index/
H A Dmail-index-fsck.c150 unsigned int i, j, name_pos, name_size, rec_pos, hdr_offset, diff; local
246 diff = dest->used - ext_hdr->hdr_size;
247 buffer_copy(map->hdr_copy_buf, hdr_offset + diff,
250 hdr->header_size += diff;
251 *offset_p += diff;
254 new_ext_hdr.hdr_size += diff;
H A Dmail-index-sync-ext.c341 ssize_t diff = (ssize_t)new_padded_hdr_size - local
346 ext[i].ext_offset += diff;
347 ext[i].hdr_offset += diff;
740 min_value = u->diff >= 0 ? 0 : (uint64_t)(-(int64_t)u->diff);
744 if (u->diff <= 0) {
746 } else if (max_value >= (uint32_t)u->diff) {
747 max_value -= u->diff;
750 "Extension record inc diff=%d larger than max value=%u "
751 "(uid=%u)", u->diff, (unsigne
[all...]

Completed in 141 milliseconds

123