Changeset 118 for trunk/xcache.c
- Timestamp:
- 2006-08-31T02:23:20+02:00 (7 years ago)
- File:
-
- 1 edited
-
trunk/xcache.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/xcache.c
r116 r118 368 368 369 369 /* helper functions for user functions */ 370 static void xc_fillinfo_dmz( xc_cache_t *cache, zval *return_value TSRMLS_DC) /* {{{ */370 static void xc_fillinfo_dmz(int cachetype, xc_cache_t *cache, zval *return_value TSRMLS_DC) /* {{{ */ 371 371 { 372 372 zval *blocks; … … 376 376 #endif 377 377 xc_mem_t *mem = cache->mem; 378 zend_ulong interval = cachetype = XC_TYPE_PHP ? xc_php_gc_interval : xc_var_gc_interval; 378 379 379 380 add_assoc_long_ex(return_value, ZEND_STRS("slots"), cache->hentry->size); … … 386 387 add_assoc_long_ex(return_value, ZEND_STRS("cached"), cache->entries_count); 387 388 add_assoc_long_ex(return_value, ZEND_STRS("deleted"), cache->deletes_count); 389 if (interval) { 390 add_assoc_long_ex(return_value, ZEND_STRS("gc"), (cache->last_gc_expires + interval) - XG(request_time)); 391 } 392 else { 393 add_assoc_null_ex(return_value, ZEND_STRS("gc")); 394 } 388 395 389 396 MAKE_STD_ZVAL(blocks); … … 1435 1442 ENTER_LOCK(cache) { 1436 1443 if (optype == XC_OP_INFO) { 1437 xc_fillinfo_dmz( cache, return_value TSRMLS_CC);1444 xc_fillinfo_dmz(type, cache, return_value TSRMLS_CC); 1438 1445 } 1439 1446 else {
Note: See TracChangeset
for help on using the changeset viewer.

