aboutsummaryrefslogtreecommitdiffstats
path: root/src/util.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2013-10-26 22:32:18 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2013-10-26 22:32:18 +0100
commit47f9952f1a0580585feb1204976f21deb53a338e (patch)
tree8a5337a182001b73fe3229bcf985235b52a46d5b /src/util.h
parent24ff611b744d26d7f95f9dd2f46292d774b0ab16 (diff)
downloadrspamd-47f9952f1a0580585feb1204976f21deb53a338e.tar.gz
rspamd-47f9952f1a0580585feb1204976f21deb53a338e.zip
Fix timeouts in map watch.
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index 405d289a3..2526a981a 100644
--- a/src/util.h
+++ b/src/util.h
@@ -216,6 +216,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 double_to_tv(dbl, tv) do { (tv)->tv_sec = (int)(dbl); (tv)->tv_usec = ((dbl) - (int)(dbl))*1000*1000; } while(0)
#define tv_to_msec(tv) (tv)->tv_sec * 1000 + (tv)->tv_usec / 1000
/* Compare two emails for building emails tree */