Changeset 65336e0fe19c6ca674b0457ed254927d507e4fca

Show
Ignore:
Timestamp:
09/04/09 14:23:22 (5 years ago)
Author:
Mark Harrison <mark@omniti.com>
git-committer:
Mark Harrison <mark@omniti.com> 1252074202 +0000
git-parent:

[7a0ad41bb3ce9260cc3136a0afcdfaddbffb60b9]

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

Formatting fixes and remove a debugging line

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

Files:

Legend:

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

    rae22e3b r65336e0  
    1616######################### 
    1717sub splittime { 
    18 my ($val,@list) = @_; 
    19 my @rv; 
     18  my ($val,@list) = @_; 
     19  my @rv; 
    2020 
    21 $val = abs($val); 
    22 foreach my $factor (@list){ 
    23 push @rv,$val%$factor; 
    24 $val/=$factor; 
    25 
    26 push @rv,int($val); 
    27 return @rv; 
     21  $val = abs($val); 
     22  foreach my $factor (@list){ 
     23    push @rv,$val%$factor; 
     24    $val/=$factor; 
     25 
     26  push @rv,int($val); 
     27  return @rv; 
    2828} 
    2929######################### 
     
    4141    if(/LOG:  restored log file/) { 
    4242      ($year,$month,$day,$hour,$min) = ( $_ =~ /^(\d\d\d\d)-(\d\d)-(\d\d)\s(\d+):(\d+)/ ); 
    43         $moo = 'moo'; 
    4443    } 
    4544  } 
     
    5857  if ($diff > 3600) 
    5958  { 
    60         return  "BAD($diff seconds behind)"; 
     59    return  "BAD($diff seconds behind)"; 
    6160  } else { 
    62         return  "OK($diff seconds behind)"; 
     61    return  "OK($diff seconds behind)"; 
    6362  } 
    6463}