Mad Ivan, stop, please.ok-i believe this code should do the trick on phpBB:
// Load limit check (if applicable)
if (doubleval($config['limit_load']) && @file_exists('/proc/loadavg'))
{
if ($load = @file('/proc/loadavg'))
{
list($this->load) = explode(' ', $load[10]);
if ($this->load > doubleval($config['limit_load']))
{
trigger_error('BOARD_UNAVAILABLE');
}
}
}
Its from phpBB2.2
Its pre-set to "10".
Added to sessions.php
The hosted sites who use phpBB forums, are not popular enough to generate a server load near 10 in their forums. There is no need for such a search... Detail never complained at the server load generated by PPM so far...