r3913 - trunk/varnish-cache/bin/varnishd
phk at projects.linpro.no
phk at projects.linpro.no
Wed Mar 11 14:51:44 CET 2009
Author: phk
Date: 2009-03-11 14:51:43 +0100 (Wed, 11 Mar 2009)
New Revision: 3913
Modified:
trunk/varnish-cache/bin/varnishd/cache_ban.c
Log:
Equip bans with a timestamp.
Modified: trunk/varnish-cache/bin/varnishd/cache_ban.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_ban.c 2009-03-11 13:31:45 UTC (rev 3912)
+++ trunk/varnish-cache/bin/varnishd/cache_ban.c 2009-03-11 13:51:43 UTC (rev 3913)
@@ -86,6 +86,7 @@
int flags;
#define BAN_F_GONE (1 << 0)
VTAILQ_HEAD(,ban_test) tests;
+ double t0;
};
static VTAILQ_HEAD(banhead,ban) ban_head = VTAILQ_HEAD_INITIALIZER(ban_head);
@@ -394,6 +395,7 @@
unsigned pcount;
CHECK_OBJ_NOTNULL(b, BAN_MAGIC);
+ b->t0 = TIM_real();
ban_sort_by_cost(b);
Lck_Lock(&ban_mtx);
More information about the varnish-commit
mailing list