Changeset 6f26ea8 in git


Ignore:
Timestamp:
2006-09-03T06:16:02Z (13 years ago)
Author:
Xuefer <xuefer@…>
Branches:
1.1, 1.2, 1.3, 3.0, 3.1, 3.2, master, trunk
Children:
5dba5943
Parents:
1bc08dd
Message:

minor ttl fix

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@129 c26eb9a1-5813-0410-bd6c-c2e55f420ca7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • xcache.c

    rf9d9181 r6f26ea8  
    284284    fprintf(stderr, "interval %d, %d %d\n", XG(request_time), cache->last_gc_expires, gc_interval);
    285285#endif
    286     if (XG(request_time) - cache->last_gc_expires > gc_interval) {
     286    if (XG(request_time) - cache->last_gc_expires >= gc_interval) {
    287287        ENTER_LOCK(cache) {
    288             if (XG(request_time) - cache->last_gc_expires > gc_interval) {
     288            if (XG(request_time) - cache->last_gc_expires >= gc_interval) {
    289289                cache->last_gc_expires = XG(request_time);
    290290                xc_entry_apply_dmz(cache, apply_func TSRMLS_CC);
     
    376376#endif
    377377    xc_mem_t *mem = cache->mem;
    378     zend_ulong interval = cachetype = XC_TYPE_PHP ? xc_php_gc_interval : xc_var_gc_interval;
     378    zend_ulong interval = (cachetype == XC_TYPE_PHP) ? xc_php_gc_interval : xc_var_gc_interval;
    379379
    380380    add_assoc_long_ex(return_value, ZEND_STRS("slots"),     cache->hentry->size);
Note: See TracChangeset for help on using the changeset viewer.