diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-10-24 17:14:25 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-10-24 17:14:25 +0300 |
commit | e8c23daa735874d7a4a5f45d46f96c2702f7f7d1 (patch) | |
tree | eb44295fbdca6686732aa576520c7e507129ed9a /src | |
parent | 8bc658b66cee9ba7184d23b195ce2f40e297034c (diff) | |
download | rspamd-e8c23daa735874d7a4a5f45d46f96c2702f7f7d1.tar.gz rspamd-e8c23daa735874d7a4a5f45d46f96c2702f7f7d1.zip |
* Implement kvstorage synced API
Diffstat (limited to 'src')
-rw-r--r-- | src/util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h index 7bdf3bdc4..0fb6f48bf 100644 --- a/src/util.h +++ b/src/util.h @@ -226,6 +226,7 @@ gchar * escape_braces_addr_fstr (memory_pool_t *pool, f_str_t *in); * Convert milliseconds to timeval fields */ #define msec_to_tv(msec, tv) do { (tv)->tv_sec = (msec) / 1000; (tv)->tv_usec = ((msec) - (tv)->tv_sec * 1000) * 1000; } while(0) +#define tv_to_msec(tv) (tv)->tv_sec * 1000 + (tv)->tv_usec / 1000 struct worker_task; struct rspamd_worker; |