Changeset 264


Ignore:
Timestamp:
Nov 13, 2009, 2:13:52 PM (11 years ago)
Author:
zerodeux
Message:

Releasing 0.3.1 - \n in error.log bugfix + more robust parsing

Location:
phptop
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • phptop/NEWS

    r263 r264  
     1phptop 0.3.1 - 2009-11-13
     2
     3    * Be more robust about parsing values, only keep numeric ones
     4    * hook: don't output \n, it's sometimes escaped back to '\n' in error.log
     5
    16phptop 0.3 - 2009-11-13
    27
  • phptop/debian/changelog

    r263 r264  
     1phptop (0.3.1) stable; urgency=low
     2
     3  * Upstream update
     4
     5 -- Vincent CARON <vcaron@bearstech.com>  Fri, 13 Nov 2009 14:13:24 +0100
     6
    17phptop (0.3) stable; urgency=low
    28
  • phptop/phptop

    r263 r264  
    2626
    2727my $package_name    = 'phptop';
    28 my $package_version = '0.3';
     28my $package_version = '0.3.1';
    2929my $package_owner   = 'Copyright (C) 2009 Bearstech - http://bearstech.com/';
    3030my $package_url     = 'http://forge.bearstech.com/trac/wiki/PhpTop';
     
    126126
    127127            # If we have a bogus key/value pair, zap the whole record
    128             if ($key eq '' or not defined $val) {
     128            if ($key eq '' or not defined $val or not $val =~ /^[0-9.]+$/) {
    129129                delete $stat{$uri};
    130130                $bogus++;
  • phptop/phptop_hook.php

    r259 r264  
    5151  $self  = $vhost != '' ? "$proto://$vhost$uri" : $_SERVER['SCRIPT_FILENAME'];
    5252
    53   $msg = sprintf("phptop %s time:%.6F user:%.6F sys:%.6F mem:%g inc:%g\n", $self, $time, $tusr, $tsys, $mem, $inc);
     53  $msg = sprintf("phptop %s time:%.6F user:%.6F sys:%.6F mem:%g inc:%g", $self, $time, $tusr, $tsys, $mem, $inc);
    5454  error_log($msg);
    5555}
Note: See TracChangeset for help on using the changeset viewer.