From 2084c1432e85ddc2a0cb16d46cf268c82773bf32 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Wed, 4 Jan 2006 22:45:55 +0000 Subject: [PATCH] Ignore negative lag --- includes/Database.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/includes/Database.php b/includes/Database.php index 6f48ce2b03..a0fce03a28 100644 --- a/includes/Database.php +++ b/includes/Database.php @@ -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; + } } } } -- 2.20.1