Commit 246edb5c authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Convert the last time(2) calls to TIM_real()


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1673 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent c17417b0
......@@ -127,7 +127,7 @@ exp_hangman(void *arg)
if (o == NULL) {
UNLOCK(&exp_mtx);
AZ(sleep(1));
t = time(NULL);
t = TIM_real();
continue;
}
TAILQ_REMOVE(&exp_deathrow, o, deathrow);
......@@ -178,7 +178,7 @@ exp_prefetch(void *arg)
UNLOCK(&exp_mtx);
AZ(sleep(1));
VCL_Refresh(&sp->vcl);
t = time(NULL);
t = TIM_real();
continue;
}
binheap_delete(exp_heap, o->heap_idx);
......
......@@ -303,7 +303,7 @@ Fetch(struct sess *sp)
CHECK_OBJ_NOTNULL(sp->wrk, WORKER_MAGIC);
CHECK_OBJ_NOTNULL(sp->obj, OBJECT_MAGIC);
sp->obj->entered = time(NULL);
sp->obj->entered = TIM_real();
assert(sp->obj->busy != 0);
......
......@@ -71,7 +71,7 @@ child_main(void)
stevedore->open(stevedore);
printf("Ready\n");
VSL_stats->start_time = time(NULL);
VSL_stats->start_time = TIM_real();
CLI_Init();
......
......@@ -207,7 +207,7 @@ wrk_thread(void *priv)
w = &ww;
memset(w, 0, sizeof *w);
w->magic = WORKER_MAGIC;
w->idle = time(NULL);
w->idle = TIM_real();
w->wlp = w->wlog;
w->wle = w->wlog + sizeof w->wlog;
AZ(pipe(w->pipe));
......
......@@ -289,7 +289,7 @@ VSL_Init(void)
/* XXX more check sanity of loghead ? */
logstart = (unsigned char *)loghead + loghead->start;
MTX_INIT(&vsl_mtx);
loghead->starttime = time(NULL);
loghead->starttime = TIM_real();
memset(VSL_stats, 0, sizeof *VSL_stats);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment