Show
Ignore:
Timestamp:
04/29/08 19:44:47 (6 years ago)
Author:
Mark Harrison <mark@omniti.com>
git-committer:
Mark Harrison <mark@omniti.com> 1209498287 +0000
git-parent:

[88b23a7d436bfc0816732f6186ba714462d4f56e]

git-author:
Mark Harrison <mark@omniti.com> 1209498287 +0000
Message:

Allow spaces at the start of a line in netstat when filtering by port

git-svn-id: https://labs.omniti.com/resmon/trunk@74 8c0face9-b7db-6ec6-c4b3-d5f7145c7d55

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lib/Resmon/Module.pm

    r0e23bcd r11b1de2  
    242242  @lines = grep(/\s$arg->{state}\s*$/, @lines) if($arg->{state}); 
    243243  @lines = grep(/^$arg->{localip}/, @lines) if($arg->{localip}); 
    244   @lines = grep(/^[\w\d\*\.]+.*[\.\:]+$arg->{localport}/, @lines) if($arg->{localport}); 
     244  @lines = grep(/^\s*[\w\d\*\.]+.*[\.\:]+$arg->{localport}/, @lines) if($arg->{localport}); 
    245245  @lines = grep(/[\d\*\.]+\d+\s+$arg->{remoteip}/, @lines) 
    246246        if($arg->{remoteip});