r925 - trunk/varnish-cache/bin/varnishd
phk at projects.linpro.no
phk at projects.linpro.no
Wed Sep 6 20:37:17 CEST 2006
Author: phk
Date: 2006-09-06 20:37:17 +0200 (Wed, 06 Sep 2006)
New Revision: 925
Modified:
trunk/varnish-cache/bin/varnishd/cache_acceptor.c
trunk/varnish-cache/bin/varnishd/cache_session.c
Log:
Save a systemcall by using the same timestamp twice.
Modified: trunk/varnish-cache/bin/varnishd/cache_acceptor.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_acceptor.c 2006-09-06 18:32:05 UTC (rev 924)
+++ trunk/varnish-cache/bin/varnishd/cache_acceptor.c 2006-09-06 18:37:17 UTC (rev 925)
@@ -66,6 +66,7 @@
XXXAN(sp);
(void)clock_gettime(CLOCK_REALTIME, &sp->t_open);
+ sp->acct.first = sp->t_open.tv_sec;
sp->fd = i;
sp->id = i;
Modified: trunk/varnish-cache/bin/varnishd/cache_session.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_session.c 2006-09-06 18:32:05 UTC (rev 924)
+++ trunk/varnish-cache/bin/varnishd/cache_session.c 2006-09-06 18:37:17 UTC (rev 925)
@@ -244,8 +244,6 @@
http_Setup(&sm->http, (void *)(sm + 1), sm->workspace);
- sm->sess.acct.first = time(NULL);
-
return (&sm->sess);
}
More information about the varnish-commit
mailing list