How can squid_curtime smaller than e->lastref?

From: 马琳 <maer727@dont-contact.us>
Date: Sun, 7 Apr 2002 14:24:59 +0800 (CST)

Hi, pals!

In file store_heap_replacement.c, line 75. ( I am using squid stable 2.4) There is a statement
like this:
    else if (squid_curtime <= e->lastref)
        tie = 0.0;
    else
        tie = 1.0 - exp((double) (e->lastref - squid_curtime) / 86400.0);

I think squid_curtime is the time right now, and is always greated than the past time ( I think
the e->lastref is some past time).

So I can not imagine the case that squid_time is smaller than the e->lastref, Can you show me
the case?

I think maybe it is because "squid_time" does not refresh immediately, but I am not sure about
it. When will squid_time be refreshed? How does it refresh?

Best regards,
George, Ma
Received on Sat Apr 06 2002 - 23:25:01 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:14:58 MST