Changeset 931
- Timestamp:
- 2012-06-26T19:26:48+02:00 (11 months ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
admin/xcache.tpl.php (modified) (3 diffs)
-
xcache.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/xcache.tpl.php
r902 r931 164 164 <th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('entry'); ?></a></th> 165 165 <th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('Hits'); ?></a></th> 166 <th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('Refcount'); ?></a></th>167 166 <th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('Size'); ?></a></th> 168 167 <?php if ($isphp) { ?> 168 <th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('Refcount'); ?></a></th> 169 169 <th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('PhpShared'); ?></a></th> 170 170 <th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('SrcSize'); ?></a></th> … … 188 188 $name = htmlspecialchars($entry['name']); 189 189 $hits = number_format($entry['hits']); 190 $refcount = number_format($entry['refcount']);191 190 $size = size($entry['size']); 192 191 if ($isphp) { … … 219 218 <td>{$namelink}</td> 220 219 <td align="right" int="{$entry['hits']}">{$entry['hits']}</td> 221 <td align="right" int="{$entry['refcount']}">{$entry['refcount']}</td>222 220 <td align="right" int="{$entry['size']}">{$size}</td> 223 221 ENTRY; 224 222 if ($isphp) { 223 $refcount = number_format($entry['refcount']); 225 224 echo <<<ENTRY 225 <td align="right" int="{$entry['refcount']}">{$entry['refcount']}</td> 226 226 <td align="right" int="{$entry['phprefcount']}">{$phprefcount}</td> 227 227 <td align="right" int="{$entry['file_size']}">{$file_size}</td> -
trunk/xcache.c
r929 r931 651 651 zval* ei; 652 652 const xc_entry_data_php_t *php; 653 xc_entry_php_t *entry_php = (xc_entry_php_t *) entry;654 653 655 654 ALLOC_INIT_ZVAL(ei); 656 655 array_init(ei); 657 656 658 add_assoc_long_ex(ei, ZEND_STRS("refcount"), entry_php->refcount);659 657 add_assoc_long_ex(ei, ZEND_STRS("hits"), entry->hits); 660 658 add_assoc_long_ex(ei, ZEND_STRS("ctime"), entry->ctime); … … 670 668 switch (entry->name_type) { 671 669 case IS_UNICODE: 672 ZVAL_UNICODEL(zv, entry->name.ustr.val, entry->name.ustr.len, 1);670 ZVAL_UNICODEL(zv, entry->name.ustr.val, entry->name.ustr.len, 1); 673 671 break; 674 672 case IS_STRING: … … 685 683 #endif 686 684 switch (type) { 687 case XC_TYPE_PHP: 685 case XC_TYPE_PHP: { 686 xc_entry_php_t *entry_php = (xc_entry_php_t *) entry; 688 687 php = entry_php->php; 689 688 add_assoc_long_ex(ei, ZEND_STRS("size"), entry->size + php->size); 689 add_assoc_long_ex(ei, ZEND_STRS("refcount"), entry_php->refcount); 690 690 add_assoc_long_ex(ei, ZEND_STRS("phprefcount"), php->refcount); 691 691 add_assoc_long_ex(ei, ZEND_STRS("file_mtime"), entry_php->file_mtime); … … 705 705 #endif 706 706 break; 707 } 707 708 708 709 case XC_TYPE_VAR:
Note: See TracChangeset
for help on using the changeset viewer.

