Home
last modified time | relevance | path

Searched refs:now (Results 1 – 13 of 13) sorted by relevance

/memcached-1.6.32/
Dproxy_ratelim.c67 struct timeval now; in _setup_tbf() local
75 gettimeofday(&now, NULL); in _setup_tbf()
76 lim->last_update = TIMEVAL_TO_MILLIS(now); in _setup_tbf()
100 static int _update_tbf(struct mcp_ratelim_tbf *lim, int take, uint64_t now) { in _update_tbf() argument
102 delta = now - lim->last_update; in _update_tbf()
128 struct timeval now; in mcplib_ratelim_tbf_call() local
131 gettimeofday(&now, NULL); in mcplib_ratelim_tbf_call()
132 now_millis = TIMEVAL_TO_MILLIS(now); in mcplib_ratelim_tbf_call()
152 struct timeval now; in mcplib_ratelim_proxy_tbf_call() local
155 gettimeofday(&now, NULL); in mcplib_ratelim_proxy_tbf_call()
[all …]
Dproxy_config.c277 struct timespec now; in proxy_run_crons() local
282 clock_gettime(CLOCK_REALTIME, &now); in proxy_run_crons()
283 if (ctx->cron_next <= now.tv_sec) { in proxy_run_crons()
302 } else if (ce->next <= now.tv_sec) { in proxy_run_crons()
315 ce->next = now.tv_sec + ce->every; in proxy_run_crons()
Dproxy_lua.c183 struct timespec now; in mcplib_register_cron() local
184 clock_gettime(CLOCK_REALTIME, &now); in mcplib_register_cron()
185 ce->next = now.tv_sec + ce->every; in mcplib_register_cron()
224 struct timespec now; in mcplib_time_real_millis() local
225 clock_gettime(CLOCK_REALTIME, &now); in mcplib_time_real_millis()
226 lua_Integer t = now.tv_nsec / 1000000 + now.tv_sec * 1000; in mcplib_time_real_millis()
232 struct timespec now; in mcplib_time_mono_millis() local
233 clock_gettime(CLOCK_MONOTONIC, &now); in mcplib_time_mono_millis()
234 lua_Integer t = now.tv_nsec / 1000000 + now.tv_sec * 1000; in mcplib_time_mono_millis()
Dproxy_network.c829 struct timeval now; in _backend_flap_check() local
840 gettimeofday(&now, NULL); in _backend_flap_check()
841 delta.tv_sec = now.tv_sec - be->last_failed.tv_sec; in _backend_flap_check()
842 subsec = now.tv_usec - be->last_failed.tv_usec; in _backend_flap_check()
859 be->last_failed = now; in _backend_flap_check()
Dproto_proxy.c1446 struct timespec now; in mcp_profile_alloc() local
1447 clock_gettime(CLOCK_MONOTONIC, &now); in mcp_profile_alloc()
1488 if (now.tv_sec != prof->last_status.tv_sec) { in mcp_profile_alloc()
1489 prof->last_status.tv_sec = now.tv_sec; in mcp_profile_alloc()
Dproxy_luafgen.c160 struct timespec now; in _mcplib_funcgen_cache() local
161 clock_gettime(CLOCK_REALTIME, &now); in _mcplib_funcgen_cache()
163 fgen->free_waiter.tv_sec = now.tv_sec + FGEN_FREE_WAIT; in _mcplib_funcgen_cache()
166 if (now.tv_sec >= fgen->free_waiter.tv_sec) { in _mcplib_funcgen_cache()
DChangeLog2 * ChangeLog moved from Google Code to Github Wiki, it's now available at:
195 * The memcached-tool script can now display stats. Patch
219 * The "stats items" command now works again; it broke with the
Dmemcached.c347 struct timeval now; in conn_timeout_thread() local
349 gettimeofday(&now, NULL); in conn_timeout_thread()
350 to_sleep.tv_sec = now.tv_sec + sleep_time; in conn_timeout_thread()
1772 rel_time_t now = current_time; in server_stats() local
1786 APPEND_STAT("uptime", "%u", now - ITEM_UPDATE_INTERVAL); in server_stats()
1787 APPEND_STAT("time", "%ld", now + (long)process_started); in server_stats()
1910 … APPEND_STAT("time_since_server_cert_refresh", "%u", now - settings.ssl_last_cert_refresh_time); in server_stats()
/memcached-1.6.32/t/
Dproxyunits.t180 my $now = int(time());
181 cmp_ok($time, '>', $now*5, "mcp.time_millis is a reasonable value: $now*5 vs $time");
/memcached-1.6.32/doc/
Dnew_lru.txt10 * LRU's are now split between HOT, WARM, and COLD LRU's. New items enter the
Dprotocol-binary.txt121 now powers all of the fastest web sites that you love.
1193 Flush the items in the cache now or some time in the future as
Dprotocol.txt567 The flags are now repeated with detailed information where useful:
743 The flags are now repeated with detailed information where useful:
835 The flags are now repeated with detailed information where useful:
921 The flags are now repeated with detailed information where useful:
1004 - "UNSAFE [message]" source class cannot move a page right now
/memcached-1.6.32/scripts/
Ddamemtop111 my $start = AnyEvent->now; # use ->time to find the end.