1
0
Fork 0

show hash value in admin

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@360 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
This commit is contained in:
Xuefer 2007-03-01 10:56:22 +00:00
parent 7d409960c9
commit f4688ad313
4 changed files with 7 additions and 0 deletions

View File

@ -58,6 +58,8 @@ $strings = array(
=> '设备',
'inode'
=> 'Inode',
'hash'
=> 'Hash',
'Access'
=> '访问',
'Create'

View File

@ -58,6 +58,8 @@ $strings = array(
=> '設備',
'inode'
=> 'Inode',
'hash'
=> 'Hash',
'Access'
=> '存取',
'Create'

View File

@ -178,6 +178,7 @@ if ($cachelist) {
<th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('inode'); ?></a></th>
<?php } ?>
<?php } ?>
<th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('hash'); ?></a></th>
<th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('Access'); ?></a></th>
<th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('Create'); ?></a></th>
<?php if ($listname == 'Deleted') { ?>
@ -227,6 +228,7 @@ ENTRY;
}
}
echo <<<ENTRY
<td int="{$entry['hvalue']}">{$entry['hvalue']}</td>
<td int="{$entry['atime']}">{$atime}</td>
<td int="{$entry['ctime']}">{$ctime}</td>
ENTRY;

View File

@ -510,6 +510,7 @@ static void xc_fillentry_dmz(xc_entry_t *entry, int del, zval *list TSRMLS_DC) /
add_assoc_long_ex(ei, ZEND_STRS("hits"), entry->hits);
add_assoc_long_ex(ei, ZEND_STRS("ctime"), entry->ctime);
add_assoc_long_ex(ei, ZEND_STRS("atime"), entry->atime);
add_assoc_long_ex(ei, ZEND_STRS("hvalue"), entry->hvalue);
if (del) {
add_assoc_long_ex(ei, ZEND_STRS("dtime"), entry->dtime);
}