Ignore negative lag

This commit is contained in:
Tim Starling 2006-01-04 22:45:55 +00:00
parent bd5588a445
commit 2084c1432e

View file

@ -1638,8 +1638,12 @@ class Database {
while ( $row = $this->fetchObject( $res ) ) {
if ( $row->User == 'system user' ) {
if ( ++$slaveThreads == 2 ) {
# This is it, return the time
return $row->Time;
# This is it, return the time (except -ve)
if ( $row->Time > 1>>31 ) {
return 0;
} else {
return $row->Time;
}
}
}
}