Show
Ignore:
Timestamp:
01/02/09 19:30:32 (5 years ago)
Author:
Mark Harrison <mark@omniti.com>
git-committer:
Mark Harrison <mark@omniti.com> 1230924632 +0000
git-parent:

[ac12e51369119edd57d0699062ab00ae200ac562]

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

Implement a timeout for sluggish checks

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

Files:

Legend:

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

    r7b9e8bc rd75bc41  
    88  my $self = bless { 
    99    configfile => $filename, 
    10     modstatus => '' 
     10    modstatus => '', 
     11    # Defaults 
     12    timeout => 10 
    1113  }, $class; 
    1214  open(CONF, "<$filename") || return undef; 
     
    7577        next; 
    7678      } 
     79      elsif(/\s*TIMEOUT\s+(\d+)\s*;\s*/) { 
     80        $self->{timeout} = $1; 
     81        next; 
     82      } 
    7783      else { 
    7884        die "Syntax Error on line $line\n";