Changeset 1127 for trunk


Ignore:
Timestamp:
2012-08-05T05:53:37+02:00 (21 months ago)
Author:
moo
Message:

show request time in module info

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mod_cacher/xc_cacher.c

    r1125 r1127  
    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.