Data-Apache-mod_status

 view release on metacpan or  search on metacpan

t/01_Data-Apache-mod_status.t  view on Meta::CPAN

            'second' => $info->server_build->second,
        }, {
            'month'  => 10,
            'day'    => 1,
            'year'   => 2008,
            'hour'   => 9,
            'minute' => 56,
            'second' => 11,
        }, 'server build datetime'
    );
    is($info->current_time_str, 'Tuesday, 11-Nov-2008 14:05:49 CET', 'current time string');
    eq_or_diff(
        {
            'month'  => $info->current_time->month,
            'day'    => $info->current_time->day,
            'year'   => $info->current_time->year,
            'hour'   => $info->current_time->hour,
            'minute' => $info->current_time->minute,
            'second' => $info->current_time->second,
            'zone'   => $info->current_time->offset,
        }, {
            'month'  => 11,
            'day'    => 11,
            'year'   => 2008,
            'hour'   => 14,
            'minute' => 5,
            'second' => 49,
            'zone'   => 3600,
        }, 'server current datetime'
    );
    is($info->restart_time_str, 'Tuesday, 11-Nov-2008 08:45:45 CET', 'restart time string');
    eq_or_diff(
        {
            'month'  => $info->restart_time->month,
            'day'    => $info->restart_time->day,
            'year'   => $info->restart_time->year,
            'hour'   => $info->restart_time->hour,
            'minute' => $info->restart_time->minute,
            'second' => $info->restart_time->second,
            'zone'   => $info->restart_time->offset,
        }, {

t/data/server-status.html  view on Meta::CPAN

<html><head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">

<title>Apache Status</title>
</head><body>
<h1>Apache Server Status for localhost</h1>

<dl><dt>Server Version: Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g</dt>
<dt>Server Built: Oct  1 2008 09:56:11
</dt></dl><hr><dl>
<dt>Current Time: Tuesday, 11-Nov-2008 14:05:49 CET</dt>
<dt>Restart Time: Tuesday, 11-Nov-2008 08:45:45 CET</dt>
<dt>Parent Server Generation: 3</dt>
<dt>Server uptime:  5 hours 20 minutes 4 seconds</dt>
<dt>Total accesses: 522647 - Total Traffic: 27.7 MB</dt>
<dt>CPU Usage: u2.77 s2.6 cu0 cs0 - .028% CPU load</dt>
<dt>27.2 requests/sec - 1511 B/second - 55 B/request</dt>
<dt>3 requests currently being processed, 49 idle workers</dt>
</dl><pre>__W______________________.......................................
_________________________.......................................
................................................................
SS..............................................................



( run in 1.303 second using v1.01-cache-2.11-cpan-49f99fa48dc )