Changeset 8074 for lang/perl/App-MadEye
- Timestamp:
- 03/18/08 15:46:49 (9 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/App-MadEye/trunk/lib/App/MadEye/Plugin/Agent/MySQLSlave.pm
r8073 r8074 13 13 my $user = $self->config->{config}->{user} or die "missing user"; 14 14 my $password = $self->config->{config}->{password}; 15 my $threshold = $self->config->{config}->{threshold}; 15 16 16 17 my $dbh = DBI->connect( … … 40 41 my $rmlp = $row->{'Read_Master_Log_Pos'}; 41 42 my $emlp = $row->{'Exec_Master_Log_Pos'}; 42 if ( $rmlp > $emlp + 10**5 ) { # XXX configurable.43 if ( abs($rmlp - $emlp) > $threshold ) { 43 44 return "considerable delay : $rmlp $emlp\n"; 44 45 } … … 72 73 required: yes 73 74 type: any 75 threshold: 76 required: yes 77 type: int 74 78 75 79 =head1 AUTHORS
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)