mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-07 01:06:48 +02:00
doubleval for load config, session to user var name change
git-svn-id: file:///svn/phpbb/trunk@2994 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -64,13 +64,13 @@ class session
|
||||
}
|
||||
|
||||
// Load limit check (if applicable)
|
||||
if ( intval($config['limit_load']) && file_exists('/proc/loadavg') )
|
||||
if ( doubleval($config['limit_load']) && file_exists('/proc/loadavg') )
|
||||
{
|
||||
if ( $load = @file('/proc/loadavg') )
|
||||
{
|
||||
list($this->load) = explode(' ', $load[0]);
|
||||
|
||||
if ( $this->load > intval($config['limit_load']) )
|
||||
if ( $this->load > doubleval($config['limit_load']) )
|
||||
{
|
||||
trigger_error('Board_unavailable');
|
||||
}
|
||||
|
Reference in New Issue
Block a user