Changeset c640c46 in git


Ignore:
Timestamp:
2012-08-05T03:53:37Z (7 years ago)
Author:
Xuefer <xuefer@…>
Branches:
3.0, 3.1, 3.2, master, trunk
Children:
8bc2ff8
Parents:
9d659f4
Message:

show request time in module info

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mod_cacher/xc_cacher.c

    r41153f0 rc640c46  
    31953195    php_info_print_table_row(2, "Readonly Protection", xc_readonly_protection ? "enabled" : "disabled");
    31963196#ifdef ZEND_ENGINE_2_1
     3197    ptr = php_format_date("Y-m-d H:i:s", sizeof("Y-m-d H:i:s") - 1, XG(request_time), 1 TSRMLS_CC);
     3198    php_info_print_table_row(2, "Page Request Time", ptr);
     3199    efree(ptr);
     3200
    31973201    ptr = php_format_date("Y-m-d H:i:s", sizeof("Y-m-d H:i:s") - 1, xc_init_time, 1 TSRMLS_CC);
    31983202    php_info_print_table_row(2, "Cache Init Time", ptr);
    31993203    efree(ptr);
    32003204#else
     3205    snprintf(buf, sizeof(buf), "%lu", (long unsigned) XG(request_time));
     3206    php_info_print_table_row(2, "Page Request Time", buf);
     3207
    32013208    snprintf(buf, sizeof(buf), "%lu", (long unsigned) xc_init_time);
    32023209    php_info_print_table_row(2, "Cache Init Time", buf);
Note: See TracChangeset for help on using the changeset viewer.