Changeset 95ba5fdb15eda6eb2e70b982a6c4820044ba3e71

Show
Ignore:
Timestamp:
11/13/07 21:31:04 (6 years ago)
Author:
Sergey Ivanov <seriv@omniti.com>
git-committer:
Sergey Ivanov <seriv@omniti.com> 1194989464 +0000
git-parent:

[4db942ba7cc18a5a9e079b320cc24bd744ccc70e]

git-author:
Sergey Ivanov <seriv@omniti.com> 1194989464 +0000
Message:

one more fix

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

Files:

Legend:

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

    r4db942b r95ba5fd  
    4848      return($arg->set_status("OK(delay = $lag < $maxlag)"));  
    4949    } 
    50     elsif ($us+60*($um+60*($uh+24*($uD)))<$maxlag) { 
    51       return($arg->set_status("WARNING(check unreliable, check later)")); 
     50    elsif ($us+60*($um+60*($uh+24*$uD))<$maxlag) { 
     51      my ($cD,$ch,$cm,$cs) = split ( / /, `date '+%d %H %M %S'`); 
     52      my $cTime = $cs+60*($cm+60*($ch+24*$cD)); 
     53      if ($cTime<$maxlag) { 
     54        return($arg->set_status("WARNING(check unreliable, check later)")); 
     55      else { 
     56        return($arg->set_status("BAD(my rev:$mr, repo rev:$ur, delay: $lag > $maxlag)")); 
     57      } 
    5258    } 
    5359    else {