/dovecot/src/lib/ |
H A D | utc-mktime.c | 8 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 D | istream-timeout.c | 43 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 D | file-lock.c | 511 int diff = timeval_diff_msecs(&now, &lock->locked_time); local 512 if (diff > file_lock_slow_warning_usecs/1000) { 514 diff / 1000, diff % 1000); 526 long long diff = timeval_diff_usecs(&now, &lock_wait_start); local 527 if (diff > file_lock_slow_warning_usecs) { 530 if (diff > file_lock_slow_warning_usecs) { 531 int diff_msecs = (diff + 999) / 1000; 536 file_lock_wait_usecs += diff;
|
H A D | connection.c | 452 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);
|
H A D | file-cache.c | 60 uoff_t diff; local 65 diff = size % page_size; 66 if (diff != 0) 67 size += page_size - diff;
|
/dovecot/src/lib-dict/ |
H A D | dict-transaction-memory.h | 17 long long diff; member in union:dict_transaction_memory_change::__anon84 36 const char *key, long long diff);
|
H A D | dict-transaction-memory.c | 49 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 D | dict-private.h | 39 const char *key, long long diff);
|
/dovecot/src/director/ |
H A D | notify-connection.c | 34 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 D | doveadm-print-table.c | 55 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;
|
H A D | doveadm-replicator.c | 109 int diff = ioloop_time - t; local 113 return t_strdup_printf("%02d:%02d:%02d", diff/3600, 114 (diff/60)%60, diff%60);
|
H A D | doveadm-oldstats.c | 224 double prev, cur, diff, prev_time, cur_time, time_multiplier; local 235 diff = cur - prev; 241 diff += cur - prev; 243 return diff * time_multiplier; 262 uint64_t prev, cur, diff; local 267 diff = cur - prev; 273 diff += cur - prev; 275 return diff;
|
/dovecot/src/anvil/ |
H A D | penalty.c | 165 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/old-stats/ |
H A D | mail-domain.c | 108 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 D | mail-ip.c | 103 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 D | mail-user.c | 124 /* <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 D | mail-command.c | 207 unsigned int diff; local 228 diff = ioloop_time - stable_mail_commands_head->last_update.tv_sec; 229 if (diff < stats_settings->command_min_time)
|
/dovecot/src/imap/ |
H A D | imap-search.c | 231 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-index/ |
H A D | test-mail-index-sync-ext.c | 67 u.diff = _diff; \ 85 u.diff = 0;
|
H A D | mail-index-sync-ext.c | 341 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...] |
H A D | mail-index-fsck.c | 150 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;
|
/dovecot/src/lib-storage/index/dbox-multi/ |
H A D | mdbox-map.h | 101 uint32_t map_uid, int diff); 103 const ARRAY_TYPE(uint32_t) *map_uids, int diff);
|
/dovecot/src/lib-old-stats/ |
H A D | stats.h | 16 bool (*diff)(const struct stats *stats1, const struct stats *stats2, member in struct:stats_vfuncs
|
/dovecot/src/dict/ |
H A D | dict-commands.c | 137 long long diff; local 142 diff = timeval_diff_usecs(&ioloop_timeval, &cmd->start_timeval); 143 if (diff < 0) 144 diff = 0; 145 stats_dist_add(stats, diff); 530 long long diff; local 532 /* <id> <key> <diff> */ 535 str_to_llong(args[2], &diff) < 0) { 543 dict_atomic_inc(trans->ctx, args[1], diff);
|
/dovecot/src/plugins/quota/ |
H A D | quota.c | 916 uint64_t bytes_limit, count_limit, current, limit, diff; local 956 diff = current - limit; 957 if (ctx->bytes_over < diff) 958 ctx->bytes_over = diff; 960 diff = limit - current; 961 if (ctx->bytes_ceil2 > diff) 962 ctx->bytes_ceil2 = diff; 963 diff += !use_grace ? 0 : 965 if (ctx->bytes_ceil > diff) 966 ctx->bytes_ceil = diff; [all...] |