Ignore negative lag
This commit is contained in:
parent
bd5588a445
commit
2084c1432e
1 changed files with 6 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue