Changeset 260


Ignore:
Timestamp:
Nov 6, 2009, 11:54:21 AM (11 years ago)
Author:
zerodeux
Message:

releasing 0.2.2 - many bugfixes

Location:
phptop
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • phptop/NEWS

    r259 r260  
    1 phptop 0.3 - unreleased
     1phptop 0.2.2 - 2009-11-06
    22
    3         * Fixed per URL hit counter, was totally bogus (over-estimated)
     3    * Fixed per URL hit counter, was totally bogus (over-estimated)
    44    * More strict log checking with 5 mandatory key:value pairs
    55      (PHP or Apache seem to wrap single input strint to multiple log
    66       lines sometimes)
     7    * Reject whole record if a single key/value pair is bogus
     8    * Warn if more than 5% bogus records found (I see rhoughy 0.2% on
     9      very busy servers)
    710    * More elegant global hits/sample counter
    811    * phptop_hook: switching to explicit formating and locale-independent
     
    1114phptop 0.2.1 - 2009-11-05
    1215
    13         * Don't run hook in CLI mode, it pollutes stderr and makes cronjobs noisy
     16    * Don't run hook in CLI mode, it pollutes stderr and makes cronjobs noisy
    1417
    1518phptop 0.2 - 2009-10-20
    1619
    17         * Warn if no logfile is found (and fails)
    18         * Warn if no record is found (not an error)
    19         * Added -p|--path-only option
    20         * Doc fix: >>php.ini instead of >php.ini overwriting
    21         * Exception fix on untested $_SERVER['HTTPS'] existence (thanks E. Mazurier)
     20    * Warn if no logfile is found (and fails)
     21    * Warn if no record is found (not an error)
     22    * Added -p|--path-only option
     23    * Doc fix: >>php.ini instead of >php.ini overwriting
     24    * Exception fix on untested $_SERVER['HTTPS'] existence (thanks E. Mazurier)
    2225
    2326phptop 0.1 - 2009-10-14
    2427
    25         * Initial release
     28    * Initial release
  • phptop/TODO

    r258 r260  
    1 - More strict log checking with mandatory keys
    21- Limit URI column width
    32- HTML output mode
  • phptop/debian/changelog

    r256 r260  
     1phptop (0.2.2) stable; urgency=low
     2
     3  * Upstream update
     4
     5 -- Vincent CARON <vcaron@bearstech.com>  Fri, 06 Nov 2009 11:52:35 +0100
     6
    17phptop (0.2.1) stable; urgency=low
    28
  • phptop/phptop

    r258 r260  
    2626
    2727my $package_name    = 'phptop';
    28 my $package_version = '0.3-dev';
     28my $package_version = '0.2.2';
    2929my $package_owner   = 'Copyright (C) 2009 Bearstech - http://bearstech.com/';
    3030my $package_url     = 'http://forge.bearstech.com/trac/wiki/PhpTop';
     
    109109my $lognb = 0;
    110110my $hits  = 0;
     111my $bogus = 0;
    111112foreach (@logfiles) {
    112113    my $lh;
     
    117118    $lognb++;
    118119
     120  LINE:
    119121    while (<$lh>) {
    120122        chomp;
     
    142144        foreach (@kv) {
    143145            my ($key, $val) = split(/:/, $_);
     146            # If we have a bogus key/value pair, zap the whole record
     147            if ($key eq '' or not defined $val) {
     148                delete $stat{$uri};
     149                $bogus++;
     150                next LINE;
     151            }
     152
    144153            $stat{$uri}{$key} += $val;
    145154
     
    168177    exit 0;
    169178}
     179if ($bogus >= $hits * .05) {
     180    print STDERR "Warning: you have more than 5% malformed records ($bogus out of $hits).\n";
     181}
    170182
    171183# Convert memory and include values from total to 'per hit', more useful and meaningful
Note: See TracChangeset for help on using the changeset viewer.