From: Tim Starling Date: Wed, 4 Jan 2006 22:45:55 +0000 (+0000) Subject: Ignore negative lag X-Git-Tag: 1.6.0~772 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/%7B%7B%20url_for%28%27admin_users%27%29%20%7D%7D?a=commitdiff_plain;h=2084c1432e85ddc2a0cb16d46cf268c82773bf32;p=lhc%2Fweb%2Fwiklou.git Ignore negative lag --- 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; + } } } }